Added experimental Haiku OS support.
It compiles and it runs with some minor glitches.
This commit is contained in:
parent
4e9488dd4d
commit
7637d9ba68
11
GNUmakefile
11
GNUmakefile
@ -17,15 +17,22 @@ STACK_PROTECT ?= NO
|
|||||||
|
|
||||||
ifeq ($(OS), Windows_NT)
|
ifeq ($(OS), Windows_NT)
|
||||||
WINDOWS ?= YES
|
WINDOWS ?= YES
|
||||||
|
OPSYS ?= Windows
|
||||||
|
else
|
||||||
|
OPSYS ?= $(shell uname)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (SOLARIS,YES)
|
ifeq ($(OPSYS),SunOS)
|
||||||
LDLIBS += -lsocket -lnsl
|
LDLIBS += -lsocket -lnsl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(OPSYS),Haiku)
|
||||||
|
LDLIBS += -lnetwork
|
||||||
|
endif
|
||||||
|
|
||||||
CFLAGS += -I./src/
|
CFLAGS += -I./src/
|
||||||
|
|
||||||
ifeq ($(WINDOWS),YES)
|
ifeq ($(OPSYS),Windows)
|
||||||
USE_BIGENDIAN := NO
|
USE_BIGENDIAN := NO
|
||||||
LDLIBS += -lws2_32
|
LDLIBS += -lws2_32
|
||||||
UHUB_CONF_DIR ?= c:/uhub/
|
UHUB_CONF_DIR ?= c:/uhub/
|
||||||
|
@ -351,6 +351,9 @@ int net_accept(int fd, struct ip_addr_encap* ipaddr)
|
|||||||
{
|
{
|
||||||
switch (net_error())
|
switch (net_error())
|
||||||
{
|
{
|
||||||
|
#if defined(__HAIKU__)
|
||||||
|
case ETIMEDOUT:
|
||||||
|
#endif
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
case ENETDOWN:
|
case ENETDOWN:
|
||||||
case EPROTO:
|
case EPROTO:
|
||||||
|
@ -81,7 +81,9 @@
|
|||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#define HAVE_STRNDUP
|
#define HAVE_STRNDUP
|
||||||
|
#ifndef __HAIKU__
|
||||||
#define HAVE_MEMMEM
|
#define HAVE_MEMMEM
|
||||||
|
#endif
|
||||||
#define HAVE_GETRLIMIT
|
#define HAVE_GETRLIMIT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user