1*4882a593Smuzhiyun--- a/storage/rocksdb/rocksdb/port/jemalloc_helper.h 2*4882a593Smuzhiyun+++ b/storage/rocksdb/rocksdb/port/jemalloc_helper.h 3*4882a593Smuzhiyun@@ -5,7 +5,7 @@ 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun #pragma once 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun-#if defined(__clang__) 8*4882a593Smuzhiyun+#if defined(__clang__) && defined(__GLIBC__) 9*4882a593Smuzhiyun // glibc's `posix_memalign()` declaration specifies `throw()` while clang's 10*4882a593Smuzhiyun // declaration does not. There is a hack in clang to make its re-declaration 11*4882a593Smuzhiyun // compatible with glibc's if they are declared consecutively. That hack breaks 12