Comparison

util-src/pposix.c @ 9277:fa6a6f921405

util.pposix: Restrict use of malloc_info to glibc Fixes build on musl based distros like Alpine linux
author Kim Alvefur <zash@zash.se>
date Fri, 07 Sep 2018 15:50:12 +0200
parent 9276:3a13c246b877
child 9279:d5c771097ea7
comparison
equal deleted inserted replaced
9276:3a13c246b877 9277:fa6a6f921405
56 #include <fcntl.h> 56 #include <fcntl.h>
57 #if defined(__linux__) 57 #if defined(__linux__)
58 #include <linux/falloc.h> 58 #include <linux/falloc.h>
59 #endif 59 #endif
60 60
61 #if !defined(WITHOUT_MALLINFO) && defined(__linux__) 61 #if !defined(WITHOUT_MALLINFO) && defined(__linux__) && defined(__GLIBC__)
62 #include <malloc.h> 62 #include <malloc.h>
63 #define WITH_MALLINFO 63 #define WITH_MALLINFO
64 #endif 64 #endif
65 65
66 #if defined(__FreeBSD__) && defined(RFPROC) 66 #if defined(__FreeBSD__) && defined(RFPROC)