[llvm-commits] [llvm] r85782 - /llvm/trunk/lib/System/Unix/Process.inc
Edward O'Callaghan
eocallaghan at auroraux.org
Sun Nov 1 19:20:58 PST 2009
Author: evocallaghan
Date: Sun Nov 1 21:20:57 2009
New Revision: 85782
URL: http://llvm.org/viewvc/llvm-project?rev=85782&view=rev
Log:
Fix malloc.h is deprecated warning on DragonFly BSD.
Modified:
llvm/trunk/lib/System/Unix/Process.inc
Modified: llvm/trunk/lib/System/Unix/Process.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Process.inc?rev=85782&r1=85781&r2=85782&view=diff
==============================================================================
--- llvm/trunk/lib/System/Unix/Process.inc (original)
+++ llvm/trunk/lib/System/Unix/Process.inc Sun Nov 1 21:20:57 2009
@@ -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
More information about the llvm-commits
mailing list