added _DEFAULT_SOURCE to fix compilation warnings on gcc 5

This commit is contained in:
arch3y 2016-05-03 21:47:34 -04:00
parent 012da78b04
commit 91ca149479
4 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,7 @@
#define _GNU_SOURCE
/* Need this for MAP_ANON and valloc() on FreeBSD (together with cdefs.h) */
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#if defined HAVE_SYS_CDEFS_H
# include <sys/cdefs.h>
#endif

View File

@ -19,6 +19,7 @@
#define _INCLUDE_POSIX_SOURCE /* for STDERR_FILENO on HP-UX */
#define _BSD_SOURCE /* for setenv on glibc systems */
#define _DEFAULT_SOURCE
#if defined HAVE_STDINT_H
# include <stdint.h>

View File

@ -20,6 +20,7 @@
#define _INCLUDE_POSIX_SOURCE /* for STDERR_FILENO on HP-UX */
#define _POSIX_SOURCE /* for kill() on glibc systems */
#define _BSD_SOURCE /* for setenv() on glibc systems */
#define _DEFAULT_SOURCE
#if defined HAVE_STDINT_H
# include <stdint.h>

View File

@ -14,6 +14,7 @@
#include "config.h"
#define _BSD_SOURCE 1 /* for MAP_POPULATE */
#define _DEFAULT_SOURCE
#if HAVE_SYS_MMAN_H
# include <sys/mman.h>