mirror of https://github.com/martanne/abduco
Use _POSIX_C_SOURCE and _XOPEN_SOURCE instead of _GNU_SOURCE
This commit is contained in:
parent
5b503c838f
commit
eabb140a38
1
abduco.c
1
abduco.c
|
|
@ -28,6 +28,7 @@
|
|||
#include <termios.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/select.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@ LIBS = -lc -lutil
|
|||
# Solaris
|
||||
#LIBS = -lc -lsocket
|
||||
|
||||
CFLAGS += -std=c99 -Os ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG -D_GNU_SOURCE
|
||||
CFLAGS += -std=c99 -Os ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
|
||||
|
||||
LDFLAGS += ${LIBS}
|
||||
|
||||
DEBUG_CFLAGS = ${CFLAGS} -UNDEBUG -O0 -g -ggdb -Wall
|
||||
|
|
|
|||
Loading…
Reference in New Issue