Haiku Support

Hope I didn't break things!
This commit is contained in:
Andrew Pamment
2018-10-18 11:36:02 +10:00
parent 93e08c0c3d
commit af8936c02e
18 changed files with 92 additions and 29 deletions

View File

@@ -8,6 +8,10 @@ OS = $(shell uname -s)
ifeq ($(OS), SunOS)
EXTRA_LIBS = -lsocket
endif
ifeq ($(OS), Haiku)
EXTRA_LIBS = -lnetwork
endif
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)

View File

@@ -7,7 +7,7 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#if defined(__OpenBSD__)
#if defined(__OpenBSD__) || defined(__HAIKU__)
# include <sys/select.h>
#endif
#include "../../deps/jsmn/jsmn.h"