From de79d7dafdf1430176f5e539c9a026baa8452d6f Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 9 Apr 2021 20:39:34 +0200 Subject: [PATCH] Fix compilation error on macOS. For some reason, macOS doesn't define asprintf() if you #define both _GNU_SOURCE and _POSIX_C_SOURCE but no other feature macros. --- test/utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/utils.c b/test/utils.c index 5da829a9..872060b1 100644 --- a/test/utils.c +++ b/test/utils.c @@ -1,5 +1,4 @@ -#define _GNU_SOURCE 1 -#define _POSIX_C_SOURCE 200809L +#define _GNU_SOURCE #ifdef NDEBUG #undef NDEBUG -- 2.39.5