diff options
| author | minux <minux.ma@gmail.com> | 2014-04-12 01:42:46 -0400 |
|---|---|---|
| committer | minux <minux.ma@gmail.com> | 2014-04-12 01:42:46 -0400 |
| commit | 9714d2e75f70f8fcca9fd7b596440a346e504742 (patch) | |
| tree | 3529f71b42f39478f70f066e669076476f50cc32 /lib/bcheck.c | |
| parent | 469ae3a7e57aba6fd0f53afdf2657d8f1a439928 (diff) | |
| download | tinycc-9714d2e75f70f8fcca9fd7b596440a346e504742.tar.gz tinycc-9714d2e75f70f8fcca9fd7b596440a346e504742.tar.bz2 | |
build: add initial NetBSD support.
Not able to generate ELF files on NetBSD yet (lacks the note and crt1.o
is actually named crt0.o on NetBSD), but -run works with these extra
defines:
-D__lint__ -D"__symbolrename(x)=asm(#x)" -D__NetBSD__
The -D__lint__ is an ugly hack, TCC should be able to emulate GCC just
fine, but it seems TCC doesn't support __builtin_va_list yet?
typedef __builtin_va_list __va_list;
/usr/include/sys/ansi.h:72: error: ';' expected (got "__va_list")
Diffstat (limited to 'lib/bcheck.c')
| -rw-r--r-- | lib/bcheck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bcheck.c b/lib/bcheck.c index 76413ad..8ac7d4e 100644 --- a/lib/bcheck.c +++ b/lib/bcheck.c @@ -22,7 +22,7 @@ #include <stdarg.h> #include <string.h> #if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) \ - && !defined(__DragonFly__) && !defined(__OpenBSD__) + && !defined(__DragonFly__) && !defined(__OpenBSD__) && !defined(__NetBSD__) #include <malloc.h> #endif #if !defined(_WIN32) @@ -41,7 +41,7 @@ #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \ || defined(__DragonFly__) || defined(__dietlibc__) \ - || defined(__UCLIBC__) || defined(__OpenBSD__) \ + || defined(__UCLIBC__) || defined(__OpenBSD__) || defined(__NetBSD__) \ || defined(_WIN32) || defined(TCC_UCLIBC) #warning Bound checking does not support malloc (etc.) in this environment. #undef CONFIG_TCC_MALLOC_HOOKS |
