ref: 02c2ed32fab95df4ce2ea9be16f8d40370bde268
parent: d2278660a0bce54ae4a5d37f2fbc6dd4c2f459c8
author: Naveen Narayanan <[email protected]>
date: Mon Aug 31 16:24:14 EDT 2020
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
--- a/config/host/unix.mk
+++ b/config/host/unix.mk
@@ -1,1 +1,3 @@
DRIVER = posix
+
+HOSTCFLAGS = -D_POSIX_C_SOURCE