Haiku Support
Hope I didn't break things!
This commit is contained in:
@@ -35,6 +35,11 @@ ifeq ($(OS), SunOS)
|
||||
CFLAGS=
|
||||
LDFLAGS=-lsocket
|
||||
endif
|
||||
ifeq ($(OS), Haiku)
|
||||
CC=gcc
|
||||
CFLAGS=
|
||||
LDFLAGS=-lnetwork
|
||||
endif
|
||||
|
||||
DEPS = main.c
|
||||
|
||||
|
@@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user