summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/Process.inc
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
commit2c7457c0f1ecc440e66a0a5a3aa36a1194e9f139 (patch)
tree2bf77bc91422f404520de3ffd10dc0fc235f3f36 /llvm/lib/System/Unix/Process.inc
parent0cc7777ce807460da12d40cbed99438caaf16c68 (diff)
downloadbcm5719-llvm-2c7457c0f1ecc440e66a0a5a3aa36a1194e9f139.tar.gz
bcm5719-llvm-2c7457c0f1ecc440e66a0a5a3aa36a1194e9f139.zip
Fix malloc.h is deprecated warning on DragonFly BSD.
llvm-svn: 85782
Diffstat (limited to 'llvm/lib/System/Unix/Process.inc')
-rw-r--r--llvm/lib/System/Unix/Process.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Process.inc b/llvm/lib/System/Unix/Process.inc
index 94e4c1bde25..911b8c32581 100644
--- a/llvm/lib/System/Unix/Process.inc
+++ b/llvm/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
OpenPOWER on IntegriCloud