# HG changeset patch # User tuomov # Date 962453936 -7200 # Node ID f597c8f0bcc928fb69e55d25e8965fb86556764d # Parent 9f5760af87d90baaa690371fd2d476e92b65bb6c trunk: changeset 19 Use POSIX_SOURCE diff -r 9f5760af87d9 -r f597c8f0bcc9 Makefile --- a/Makefile Sat Jul 01 13:31:40 2000 +0200 +++ b/Makefile Sat Jul 01 14:18:56 2000 +0200 @@ -8,7 +8,7 @@ ###################################### INCLUDES += -I./include -CFLAGS += $(ANSI_SOURCE) +CFLAGS += $(POSIX_SOURCE) OBJS= misc.o output.o util.o optparser.o parser.o tokenizer.o diff -r 9f5760af87d9 -r f597c8f0bcc9 system.mk --- a/system.mk Sat Jul 01 13:31:40 2000 +0200 +++ b/system.mk Sat Jul 01 14:18:56 2000 +0200 @@ -33,10 +33,21 @@ CC=gcc -ANSI_SOURCE=-ansi -# gnu libc -XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -# most other systems +# The ANSI_SOURCE, XOPEN_SOURCE and WARN options should not be necessary, +# they're mainly for development use. So, if they cause trouble (not +# the ones that should be used on your system or the system is broken), +# just comment them out. + +# libtu/ uses POSIX_SOURCE + +POSIX_SOURCE=-ansi -D_POSIX_SOURCE + +# and . (pwm) XOPEN_SOURCE + +# This should be used for gnu libc (linux), but SA_RESTART seems to be +# broken so don't use anything. +#XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED +# Some other systems. #XOPEN_SOURCE=-ansi -D__EXTENSIONS__ # Same as '-Wall -pedantic-errors' without '-Wunused' as callbacks often