changed MISSING_{NANOSLEEP,GETTIME} to use -D to fix compilation on OS X

This commit is contained in:
Jon Williams 2016-03-31 13:38:34 -04:00
parent 94706763e5
commit e0c15ea7e8
3 changed files with 7 additions and 14 deletions

View file

@ -27,11 +27,12 @@ LIBS+=-lrt
endif
ifeq ($(UNAME), Darwin)
# TODO: Putting GCC in C11 mode breaks things.
CFLAGS+=-std=c11
CFLAGS+=-std=c11 -DMISSING_GETTIME -DMISSING_NANOSLEEP
COMPAT+=compat/clock_gettime/clock_gettime.o compat/clock_nanosleep/clock_nanosleep.o
endif
ifeq ($(UNAME), OpenBSD)
CFLAGS+= -DMISSING_NANOSLEEP
COMPAT+= compat/clock_nanosleep/clock_nanosleep.o
endif