Compile with -std=c99.

This commit is contained in:
Sam Hocevar 2016-01-12 11:17:04 +01:00
parent 15ed538dcc
commit 0090b40252

View File

@ -9,5 +9,9 @@ sysconf_DATA = rinetd.conf
sbin_PROGRAMS = rinetd
rinetd_SOURCES = rinetd.c match.c match.h
rinetd_CFLAGS = -Wall -Wwrite-strings -I.
# _POSIX_C_SOURCE is for SA_RESTART and others
# _XOPEN_SOURCE is for struct sigaction
# _DEFAULT_SOURCE is for h_errno and gethostbyname-related macros
rinetd_CFLAGS = -std=c99 -D_XOPEN_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L -Wall -Wwrite-strings -I.