add _DEFAULT_SOURCE for glibc >= 2.20
This commit is contained in:
parent
1d13fcbb02
commit
1cd496f158
|
@ -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([
|
||||
|
|
|
@ -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) */
|
||||
|
|
Loading…
Reference in New Issue