Haiku Support
Hope I didn't break things!
This commit is contained in:
@@ -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)
|
||||
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user