[llvm-commits] CVS: llvm/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/bintree.h

LLVM llvm at cs.uiuc.edu
Wed Jun 23 09:32:02 PDT 2004


Changes in directory llvm/test/Programs/MultiSource/Benchmarks/McCat/17-bintr:

bintree.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:  (+6 -1)

Index: llvm/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/bintree.h
diff -u llvm/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/bintree.h:1.1 llvm/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/bintree.h:1.2
--- llvm/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/bintree.h:1.1	Mon May 12 13:34:21 2003
+++ llvm/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/bintree.h	Wed Jun 23 09:23:34 2004
@@ -12,7 +12,12 @@
 #define _bintree 
 
 #include "general.h"
-#include <malloc.h>
+
+#if defined(__FreeBSD__)
+#  include <stdlib.h>
+#else
+#  include <malloc.h>
+#endif
 
 
 struct binaryTree {





More information about the llvm-commits mailing list