aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorChristian Jullien <jullien@openbsd.eligis.com>2016-10-15 14:50:17 +0200
committerChristian Jullien <jullien@openbsd.eligis.com>2016-10-15 14:50:17 +0200
commit36759ddacf3856599873f7c181c7e01c3a8d5f1f (patch)
treeb6bf677a099b4fd104a627acf7f06f93ae8cdf90 /tcc.h
parent18a5d8188ac64fc8dd425668291616f330161747 (diff)
downloadtinycc-36759ddacf3856599873f7c181c7e01c3a8d5f1f.tar.gz
tinycc-36759ddacf3856599873f7c181c7e01c3a8d5f1f.tar.bz2
Start support of OpenBSD, tcc compiler can be produced from source tree
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tcc.h b/tcc.h
index 8aa2c47..efb1c92 100644
--- a/tcc.h
+++ b/tcc.h
@@ -39,7 +39,9 @@
#ifndef _WIN32
# include <unistd.h>
# include <sys/time.h>
-# include <sys/ucontext.h>
+# ifndef __OpenBSD__
+# include <sys/ucontext.h>
+# endif
# include <sys/mman.h>
# ifndef CONFIG_TCC_STATIC
# include <dlfcn.h>