aboutsummaryrefslogtreecommitdiff
path: root/cgcc
diff options
context:
space:
mode:
Diffstat (limited to 'cgcc')
-rwxr-xr-xcgcc3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgcc b/cgcc
index 98686a7..cda8dab 100755
--- a/cgcc
+++ b/cgcc
@@ -221,6 +221,9 @@ sub add_specs {
} elsif ($spec eq 'linux') {
return &add_specs ('unix') .
' -D__linux__=1 -D__linux=1 -Dlinux=linux';
+ } elsif ($spec eq 'openbsd') {
+ return &add_specs ('unix') .
+ ' -D__OpenBSD__=1';
} elsif ($spec eq 'unix') {
return ' -Dunix=1 -D__unix=1 -D__unix__=1';
} elsif ( $spec =~ /^cygwin/) {