From: Guus Sliepen Date: Fri, 9 Apr 2021 18:39:34 +0000 (+0200) Subject: Fix compilation error on macOS. X-Git-Url: http://git.meshlink.io/?p=meshlink;a=commitdiff_plain;h=de79d7dafdf1430176f5e539c9a026baa8452d6f 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. --- 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