unconditionally define _GNU_SOURCE

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
pull/62/head
Marc Kleine-Budde 2016-10-03 16:46:59 +02:00
parent ee0233505b
commit cf949a926a
4 changed files with 3 additions and 5 deletions

View File

@ -49,7 +49,8 @@ CPPFLAGS += -Iinclude \
-D_FILE_OFFSET_BITS=64 \ -D_FILE_OFFSET_BITS=64 \
-DSO_RXQ_OVFL=40 \ -DSO_RXQ_OVFL=40 \
-DPF_CAN=29 \ -DPF_CAN=29 \
-DAF_CAN=PF_CAN -DAF_CAN=PF_CAN \
-D_GNU_SOURCE
PROGRAMS_ISOTP = isotpdump isotprecv isotpsend isotpsniffer isotptun isotpserver isotpperf PROGRAMS_ISOTP = isotpdump isotprecv isotpsend isotpsniffer isotptun isotpserver isotpperf
PROGRAMS_CANGW = cangw PROGRAMS_CANGW = cangw

View File

@ -44,7 +44,6 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <sys/time.h> #include <sys/time.h>
#define __USE_XOPEN /* supress warning for strptime */
#include <time.h> #include <time.h>
#include <libgen.h> #include <libgen.h>
#include <unistd.h> #include <unistd.h>

View File

@ -88,6 +88,7 @@ AC_CHECK_DECL(AF_CAN,,
AC_CHECK_DECL(N_SLCAN,, AC_CHECK_DECL(N_SLCAN,,
[AC_DEFINE([N_SLCAN], [17], [N_SLCAN])] [AC_DEFINE([N_SLCAN], [17], [N_SLCAN])]
) )
AC_DEFINE(_GNU_SOURCE)
# #

View File

@ -22,9 +22,6 @@
* *
*/ */
/* To get ptsname grantpt and unlockpt definitions from stdlib.h */
#define _GNU_SOURCE
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>