add _DEFAULT_SOURCE for glibc >= 2.20

This commit is contained in:
Lee Sukchan 2017-09-29 10:12:42 +00:00
parent 1d13fcbb02
commit 1cd496f158
2 changed files with 2 additions and 3 deletions

View File

@ -47,7 +47,8 @@ AH_TOP([
#define __NEXTEPC_CONFIG_H__
/* need this, because some autoconf tests rely on this (e.g. stpcpy)
* and it should be used for new programs */
#define _GNU_SOURCE 1
#define _DEFAULT_SOURCE 1
#define _GNU_SOURCE 1
])
AH_BOTTOM([

View File

@ -13,11 +13,9 @@
#include "config.h"
#endif
#if 0 /* modified by acetcom */
#ifndef _BSD_SOURCE
#define _BSD_SOURCE /* for snprintf() on some linux systems */
#endif
#endif
#include <stdio.h> /* For snprintf(3) */
#include <stdlib.h> /* For *alloc(3) */