unconditionally define _GNU_SOURCE
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>pull/62/head
parent
ee0233505b
commit
cf949a926a
3
Makefile
3
Makefile
|
|
@ -49,7 +49,8 @@ CPPFLAGS += -Iinclude \
|
|||
-D_FILE_OFFSET_BITS=64 \
|
||||
-DSO_RXQ_OVFL=40 \
|
||||
-DPF_CAN=29 \
|
||||
-DAF_CAN=PF_CAN
|
||||
-DAF_CAN=PF_CAN \
|
||||
-D_GNU_SOURCE
|
||||
|
||||
PROGRAMS_ISOTP = isotpdump isotprecv isotpsend isotpsniffer isotptun isotpserver isotpperf
|
||||
PROGRAMS_CANGW = cangw
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/time.h>
|
||||
#define __USE_XOPEN /* supress warning for strptime */
|
||||
#include <time.h>
|
||||
#include <libgen.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
|||
|
|
@ -88,6 +88,7 @@ AC_CHECK_DECL(AF_CAN,,
|
|||
AC_CHECK_DECL(N_SLCAN,,
|
||||
[AC_DEFINE([N_SLCAN], [17], [N_SLCAN])]
|
||||
)
|
||||
AC_DEFINE(_GNU_SOURCE)
|
||||
|
||||
|
||||
#
|
||||
|
|
|
|||
|
|
@ -22,9 +22,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
/* To get ptsname grantpt and unlockpt definitions from stdlib.h */
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
|
|||
Loading…
Reference in New Issue