* lib-mem.c: fix FreeBSD 7.0 build by including <sys/cdefs.h> earlier on.
This commit is contained in:
parent
8bbe4b289d
commit
5feec8da6a
@ -22,6 +22,9 @@
|
|||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
/* Need this for MAP_ANON and valloc() on FreeBSD (together with cdefs.h) */
|
/* Need this for MAP_ANON and valloc() on FreeBSD (together with cdefs.h) */
|
||||||
#define _BSD_SOURCE
|
#define _BSD_SOURCE
|
||||||
|
#if defined HAVE_SYS_CDEFS_H
|
||||||
|
# include <sys/cdefs.h>
|
||||||
|
#endif
|
||||||
/* Use this to get mmap64() on glibc systems */
|
/* Use this to get mmap64() on glibc systems */
|
||||||
#define _LARGEFILE64_SOURCE
|
#define _LARGEFILE64_SOURCE
|
||||||
/* Use this to get ENOMEM on HP-UX */
|
/* Use this to get ENOMEM on HP-UX */
|
||||||
@ -45,9 +48,6 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#if defined HAVE_SYS_CDEFS_H
|
|
||||||
# include <sys/cdefs.h>
|
|
||||||
#endif
|
|
||||||
#if defined HAVE_MALLOC_H
|
#if defined HAVE_MALLOC_H
|
||||||
# include <malloc.h>
|
# include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user