mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 06:20:00 +02:00
unconditionally define _GNU_SOURCE
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user