summaryrefslogtreecommitdiff
path: root/src/network/core/os_abstraction.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-21 18:36:33 +0000
committerrubidium <rubidium@openttd.org>2009-09-21 18:36:33 +0000
commit01ab1c60011eb1b9cef03fac73da4b71410f1460 (patch)
treedb7eec7f2444b6f5381730c56692700a22551f77 /src/network/core/os_abstraction.h
parent3dd202ba1c15bb5e1bac3ab21eed7f63435a88bb (diff)
downloadopenttd-01ab1c60011eb1b9cef03fac73da4b71410f1460.tar.xz
(svn r17606) -Add: initial support for Haiku; a dedicated server with zlib and libpng compiles and links (for me). Something's fishy with the network so it doesn't actually work (yet)
Diffstat (limited to 'src/network/core/os_abstraction.h')
-rw-r--r--src/network/core/os_abstraction.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network/core/os_abstraction.h b/src/network/core/os_abstraction.h
index d9d046139..d0d7204f9 100644
--- a/src/network/core/os_abstraction.h
+++ b/src/network/core/os_abstraction.h
@@ -155,7 +155,7 @@ static inline void OTTDfreeaddrinfo(struct addrinfo *ai)
# include <arpa/inet.h>
# include <net/if.h>
/* According to glibc/NEWS, <ifaddrs.h> appeared in glibc-2.3. */
-# if !defined(__sgi__) && !defined(SUNOS) && !defined(__MORPHOS__) && !defined(__BEOS__) && !defined(__INNOTEK_LIBC__) \
+# if !defined(__sgi__) && !defined(SUNOS) && !defined(__MORPHOS__) && !defined(__BEOS__) && !defined(__HAIKU__) && !defined(__INNOTEK_LIBC__) \
&& !(defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 2)) && !defined(__dietlibc__) && !defined(HPUX)
/* If for any reason ifaddrs.h does not exist on your system, comment out
* the following two lines and an alternative way will be used to fetch
@@ -185,6 +185,10 @@ static inline void OTTDfreeaddrinfo(struct addrinfo *ai)
typedef int socklen_t;
#endif
+#ifdef __HAIKU__
+ #define IPV6_V6ONLY 27
+#endif
+
#if defined(PSP)
# include <sys/socket.h>
# include <netinet/in.h>