commit 02c2ed32fab95df4ce2ea9be16f8d40370bde268
parent d2278660a0bce54ae4a5d37f2fbc6dd4c2f459c8
Author: Naveen Narayanan <zerous@simple-cc.org>
Date: Mon, 31 Aug 2020 20:24:14 +0200
config: Use _POSIX_C_SOURCE in host/unix.mk
Use feature test macro, _POSIX_C_SOURCE, to limit exposure of posix
namespace in certain unixes (freebsd) in which POSIX std 1003.1-2008
is exposed by default, and, hence, avoid collision with static
getline() in addr2line.c and as/parser.c
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/config/host/unix.mk b/config/host/unix.mk
@@ -1 +1,3 @@
DRIVER = posix
+
+HOSTCFLAGS = -D_POSIX_C_SOURCE