All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cgcc: teach cgcc about freebsd & netbsd
@ 2017-11-07 19:45 Luc Van Oostenryck
  0 siblings, 0 replies; only message in thread
From: Luc Van Oostenryck @ 2017-11-07 19:45 UTC (permalink / raw)
  To: linux-sparse; +Cc: Luc Van Oostenryck

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 cgcc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/cgcc b/cgcc
index 16b37310f..0b191f62e 100755
--- a/cgcc
+++ b/cgcc
@@ -241,6 +241,12 @@ sub add_specs {
     } elsif ($spec eq 'openbsd') {
 	return &add_specs ('unix') .
 	    ' -D__OpenBSD__=1';
+    } elsif ($spec eq 'freebsd') {
+	return &add_specs ('unix') .
+	    ' -D__FreeBSD__=1';
+    } elsif ($spec eq 'netbsd') {
+	return &add_specs ('unix') .
+	    ' -D__NetBSD__=1';
     } elsif ($spec eq 'darwin') {
 	return
 	    ' -D__APPLE__=1 -D__MACH__=1';
-- 
2.14.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-07 19:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-07 19:45 [PATCH] cgcc: teach cgcc about freebsd & netbsd Luc Van Oostenryck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.