Commit 691cd4d8 authored by Benjamin FRANCOIS's avatar Benjamin FRANCOIS
Browse files

Re-enabled Haiku build

parent 86f371be
......@@ -110,7 +110,7 @@ ifneq (,$(findstring unix,$(platform)))
SHARED := -shared -Wl,--version-script=link.T
LDFLAGS += -Wl,--no-undefined
ifneq (,$(findstring Haiku,$(shell uname -s)))
LIBS += -lroot
LIBS += -lroot -lnetwork
else
LIBS += -lrt
endif
......
......@@ -250,7 +250,7 @@ static void tcp_callback(uint16_t ev, struct pico_socket *s)
#if defined(_WIN32)
struct protoent *tcp_proto = getprotobyname("TCP");
setsockopt(sockfd, tcp_proto->p_proto, TCP_NODELAY, (const char *)&optval, optlen);
#elif !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
#elif !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__HAIKU__)
setsockopt(sockfd, SOL_TCP, TCP_NODELAY, (const void *)&optval, optlen);
#else
struct protoent *tcp_proto = getprotobyname("TCP");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment