changeset 1084:762136aa07ef

make: fix macOS build which is not POSIX conformant
author David Demelier <markand@malikania.fr>
date Wed, 21 Jul 2021 07:48:31 +0200
parents da8f962a6540
children 91e3def8c708
files GNUmakefile
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/GNUmakefile	Tue Jul 20 11:06:22 2021 +0200
+++ b/GNUmakefile	Wed Jul 21 07:48:31 2021 +0200
@@ -197,6 +197,7 @@
 endif
 
 ifeq (${OS},Darwin)
+DEFS+=          -D_DARWIN_C_SOURCE
 SHFLAGS=        -undefined dynamic_lookup
 ALLFLAGS=       -Wl,-all_load
 else