ebizzy: guard mallocopt() with __GLIBC__
PATCH 1/1 ebizzy: guard mallocopt() with __GLIBC__
From: Khem Raj <[email protected]>
mallocopt is not available on non glibc implementations
Reviewed-by Petr Vorel <[email protected]>
Signed-off-by Khem Raj <[email protected]>
Signed-off-by Petr Vorel <[email protected]>
--- utils/benchmark/ebizzy-0.3/ebizzy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
utils/benchmark/ebizzy-0.3/ebizzy.c +2 -2
@@ -215,10 +215,10 @@ static void read_options(int argc, char *argv[]) "\"never mmap\" option specified\n");usage (); } - +#ifdef __GLIBC__if (never_mmap)mallopt (M_MMAP_MAX ,0 ); - +#endif if (chunk_size < record_size) {fprintf (stderr,"Chunk size %u smaller than record size %u\n" , chunk_size, record_size);
Signature · 1 line
2.26.2