From 2c7457c0f1ecc440e66a0a5a3aa36a1194e9f139 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Mon, 2 Nov 2009 03:20:57 +0000 Subject: Fix malloc.h is deprecated warning on DragonFly BSD. llvm-svn: 85782 --- llvm/lib/System/Unix/Process.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'llvm/lib') 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 #endif -#ifdef HAVE_MALLOC_H +// DragonFly BSD has deprecated for instead, +// Unix.h includes this for us already. +#if defined(HAVE_MALLOC_H) && !defined(__DragonFly__) #include #endif #ifdef HAVE_MALLOC_MALLOC_H -- cgit v1.2.3