Use _POSIX_C_SOURCE and _XOPEN_SOURCE instead of _GNU_SOURCE

This commit is contained in:
Marc André Tanner 2014-10-16 21:24:51 +02:00
parent 5b503c838f
commit eabb140a38
2 changed files with 3 additions and 1 deletions

View File

@ -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>

View File

@ -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