diff options
author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-11-02 03:20:57 +0000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-11-02 03:20:57 +0000 |
commit | bd5dc45296b332449a114c6c5e96e136590d3ab3 (patch) | |
tree | 1dad2e5bff0331a2ff26c3f3e0f16ddde2d1a14d /lib/System/Unix/Process.inc | |
parent | 438b00b2adf348cdb933d8764335cebd56046abc (diff) |
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/Unix/Process.inc')
-rw-r--r-- | lib/System/Unix/Process.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/System/Unix/Process.inc b/lib/System/Unix/Process.inc index 94e4c1bde2..911b8c3258 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 |