diff options
author | Eric Christopher <echristo@apple.com> | 2012-08-06 20:52:18 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-08-06 20:52:18 +0000 |
commit | 22738d00a30670d5227b47fe2b34d044cebd481c (patch) | |
tree | a9e31e9aa0be3f16ab53b67cbf51103467478870 /llvm/lib/Support/Unix/Process.inc | |
parent | b9ddbd3daa318f38266ea8c4b0786073911615ed (diff) | |
download | bcm5719-llvm-22738d00a30670d5227b47fe2b34d044cebd481c.tar.gz bcm5719-llvm-22738d00a30670d5227b47fe2b34d044cebd481c.zip |
Add support for the OpenBSD for Bitrig.
Patch by David Hill.
llvm-svn: 161344
Diffstat (limited to 'llvm/lib/Support/Unix/Process.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Process.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc index 174112e8c2a..5204147ce31 100644 --- a/llvm/lib/Support/Unix/Process.inc +++ b/llvm/lib/Support/Unix/Process.inc @@ -20,9 +20,10 @@ #ifdef HAVE_SYS_RESOURCE_H #include <sys/resource.h> #endif -// DragonFly BSD has deprecated <malloc.h> for <stdlib.h> instead, -// Unix.h includes this for us already. -#if defined(HAVE_MALLOC_H) && !defined(__DragonFly__) +// DragonFlyBSD, OpenBSD, and Bitrig have deprecated <malloc.h> for +// <stdlib.h> instead. Unix.h includes this for us already. +#if defined(HAVE_MALLOC_H) && !defined(__DragonFly__) && \ + !defined(__OpenBSD__) && !defined(__Bitrig__) #include <malloc.h> #endif #ifdef HAVE_MALLOC_MALLOC_H |