changed MISSING_{NANOSLEEP,GETTIME} to use -D to fix compilation on OS X
This commit is contained in:
parent
94706763e5
commit
e0c15ea7e8
3 changed files with 7 additions and 14 deletions
3
Makefile
3
Makefile
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue