shithub: scc

Download patch

ref: a4b082e87a11db4311b8b84224abfdb9dbad297a
parent: faab83b89701457c3dff6b9780af8968b8132d95
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Sep 16 17:39:47 EDT 2017

Add define flags for NetBSD

NetBSD assumes _NETBSD_SOURCE unless you export some oher macro
feature. In our case, we want _ANSI_SOURCE which avoids any
kind of pollution of the namespace.

--- a/config.mk
+++ b/config.mk
@@ -31,6 +31,7 @@
 AS = as
 
 # for Plan9 add -D_SUSV2_SOURCE
+# for NetBSD add -D_ANSI_SOURCE
 SCC_CFLAGS = $(MOREFLAGS) \
              -g \
              $(CFLAGS)