aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-11-02 03:20:57 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-11-02 03:20:57 +0000
commitbd5dc45296b332449a114c6c5e96e136590d3ab3 (patch)
tree1dad2e5bff0331a2ff26c3f3e0f16ddde2d1a14d /lib/System
parent438b00b2adf348cdb933d8764335cebd56046abc (diff)
downloadexternal_llvm-bd5dc45296b332449a114c6c5e96e136590d3ab3.zip
external_llvm-bd5dc45296b332449a114c6c5e96e136590d3ab3.tar.gz
external_llvm-bd5dc45296b332449a114c6c5e96e136590d3ab3.tar.bz2
Fix malloc.h is deprecated warning on DragonFly BSD.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85782 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/Unix/Process.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/System/Unix/Process.inc b/lib/System/Unix/Process.inc
index 94e4c1b..911b8c3 100644
--- a/lib/System/Unix/Process.inc
+++ b/lib/System/Unix/Process.inc
@@ -18,7 +18,9 @@
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
-#ifdef HAVE_MALLOC_H
+// DragonFly BSD has deprecated <malloc.h> for <stdlib.h> instead,
+// Unix.h includes this for us already.
+#if defined(HAVE_MALLOC_H) && !defined(__DragonFly__)
#include <malloc.h>
#endif
#ifdef HAVE_MALLOC_MALLOC_H