mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
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
This commit is contained in:
parent
438b00b2ad
commit
bd5dc45296
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user