Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 1 | --- a/storage/rocksdb/rocksdb/port/jemalloc_helper.h |
| 2 | +++ b/storage/rocksdb/rocksdb/port/jemalloc_helper.h |
| 3 | @@ -5,7 +5,7 @@ |
| 4 | |
| 5 | #pragma once |
| 6 | |
| 7 | -#if defined(__clang__) |
| 8 | +#if defined(__clang__) && defined(__GLIBC__) |
| 9 | // glibc's `posix_memalign()` declaration specifies `throw()` while clang's |
| 10 | // declaration does not. There is a hack in clang to make its re-declaration |
| 11 | // compatible with glibc's if they are declared consecutively. That hack breaks |