define _GNU_SOURCE on the command line
that way it is already set in configure and can thus be used by tests.
This commit is contained in:
parent
faeb9b5bf7
commit
96eaeb428d
|
@ -9,6 +9,8 @@ if test "$GCC" = yes; then
|
||||||
CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wstrict-prototypes"
|
CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wstrict-prototypes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
|
||||||
|
|
||||||
AC_CHECK_HEADERS(sys/poll.h sys/select.h)
|
AC_CHECK_HEADERS(sys/poll.h sys/select.h)
|
||||||
AC_CHECK_FUNCS(vasprintf)
|
AC_CHECK_FUNCS(vasprintf)
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
|
||||||
#ifdef HAVE_GETOPT_LONG
|
#ifdef HAVE_GETOPT_LONG
|
||||||
# define _GNU_SOURCE
|
|
||||||
# include <getopt.h>
|
# include <getopt.h>
|
||||||
struct option Opts[] = {
|
struct option Opts[] = {
|
||||||
{"write", 0, NULL, 'w' },
|
{"write", 0, NULL, 'w' },
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
* despite that library's more restrictive license.
|
* despite that library's more restrictive license.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user