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

@@ -35,6 +35,11 @@ ifeq ($(OS), SunOS)
CFLAGS=
LDFLAGS=-lsocket
endif
ifeq ($(OS), Haiku)
CC=gcc
CFLAGS=
LDFLAGS=-lnetwork
endif
DEPS = main.c

View File

@@ -6,7 +6,7 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/types.h>
#if defined(__OpenBSD__)
#if defined(__OpenBSD__) || defined(__HAIKU__)
# include <sys/select.h>
#endif
@@ -119,4 +119,4 @@ int main(int argc, char **argv) {
}
}
}
}
}