mirror of
https://github.com/fluencelabs/redis
synced 2025-04-26 19:12:14 +00:00
Avoid collision with MacOS LIST_HEAD macro after #6384.
This commit is contained in:
parent
e5b5f9a2f6
commit
4092a75d85
@ -388,6 +388,14 @@ int jemalloc_purge() {
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__APPLE__)
|
||||||
|
/* For proc_pidinfo() used later in zmalloc_get_smap_bytes_by_field().
|
||||||
|
* Note that this file cannot be included in zmalloc.h because it includes
|
||||||
|
* a Darwin queue.h file where there is a "LIST_HEAD" macro (!) defined
|
||||||
|
* conficting with Redis user code. */
|
||||||
|
#include <libproc.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Get the sum of the specified field (converted form kb to bytes) in
|
/* Get the sum of the specified field (converted form kb to bytes) in
|
||||||
* /proc/self/smaps. The field must be specified with trailing ":" as it
|
* /proc/self/smaps. The field must be specified with trailing ":" as it
|
||||||
* apperas in the smaps output.
|
* apperas in the smaps output.
|
||||||
|
@ -57,7 +57,6 @@
|
|||||||
|
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
#include <malloc/malloc.h>
|
#include <malloc/malloc.h>
|
||||||
#include <libproc.h>
|
|
||||||
#define HAVE_MALLOC_SIZE 1
|
#define HAVE_MALLOC_SIZE 1
|
||||||
#define zmalloc_size(p) malloc_size(p)
|
#define zmalloc_size(p) malloc_size(p)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user