aboutsummaryrefslogtreecommitdiff
path: root/bcheck.c
diff options
context:
space:
mode:
authorgrischka <grischka>2007-12-16 18:24:44 +0000
committergrischka <grischka>2007-12-16 18:24:44 +0000
commit6c96c41ee49c11dda436eecc23beea002eace19e (patch)
tree76d3c00ca47a08c133372e73298a4d9ef655aa79 /bcheck.c
parentf466577673ed9e61124f50fa59c351f16c27388e (diff)
downloadtinycc-6c96c41ee49c11dda436eecc23beea002eace19e.tar.gz
tinycc-6c96c41ee49c11dda436eecc23beea002eace19e.tar.bz2
Import changesets (part 4) 428,457,460,467: defines for openbsd etc.
Diffstat (limited to 'bcheck.c')
-rw-r--r--bcheck.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bcheck.c b/bcheck.c
index d13abf5..0ec2a4b 100644
--- a/bcheck.c
+++ b/bcheck.c
@@ -21,7 +21,7 @@
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
-#ifndef __FreeBSD__
+#if !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__OpenBSD__)
#include <malloc.h>
#endif
@@ -36,8 +36,9 @@
#define HAVE_MEMALIGN
-#if defined(__FreeBSD__) || defined(__dietlibc__)
-#warning Bound checking not fully supported on FreeBSD
+#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__dietlibc__) \
+ || defined(__UCLIBC__) || defined(__OpenBSD__)
+#warning Bound checking not fully supported in this environment.
#undef CONFIG_TCC_MALLOC_HOOKS
#undef HAVE_MEMALIGN
#endif