Merge pull request #111 from WIZARDISHUNGRY/mutability-openbsd

Fix compilation on OpenBSD
This commit is contained in:
Oliver Jowett 2016-03-31 19:46:20 +01:00
commit 5417fa6a53
6 changed files with 31 additions and 11 deletions

View file

@ -27,10 +27,15 @@ 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
all: dump1090 view1090
%.o: %.c *.h