scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 8d8bd9d02cb208dd6e2511b6804101f9c9d1a38c
parent a3dde947d63b686ac8c8582557704d444b0b9e8c
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:
Mconfig/host/unix.mk | 2++
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