[llvm-commits] CVS: llvm/test/Programs/MultiSource/Benchmarks/MallocBench/gs/malloc_.h
LLVM
llvm at cs.uiuc.edu
Wed Jun 23 09:32:11 PDT 2004
Changes in directory llvm/test/Programs/MultiSource/Benchmarks/MallocBench/gs:
malloc_.h updated: 1.1 -> 1.2
---
Log message:
Fixes for FreeBSD to avoid #include <malloc.h>
Patch provided by Vladimir Merzliakov. Thanks, Vladimir!
---
Diffs of the changes: (+5 -1)
Index: llvm/test/Programs/MultiSource/Benchmarks/MallocBench/gs/malloc_.h
diff -u llvm/test/Programs/MultiSource/Benchmarks/MallocBench/gs/malloc_.h:1.1 llvm/test/Programs/MultiSource/Benchmarks/MallocBench/gs/malloc_.h:1.2
--- llvm/test/Programs/MultiSource/Benchmarks/MallocBench/gs/malloc_.h:1.1 Wed Feb 18 13:58:33 2004
+++ llvm/test/Programs/MultiSource/Benchmarks/MallocBench/gs/malloc_.h Wed Jun 23 09:23:34 2004
@@ -30,7 +30,11 @@
# ifdef BSD4_2
extern char *malloc();
# else
-# include <malloc.h>
+# if defined(__FreeBSD__)
+# include <stdlib.h>
+# else
+# include <malloc.h>
+# endif
# endif
# endif
#endif
More information about the llvm-commits
mailing list