summaryrefslogtreecommitdiff
path: root/src/network/core/os_abstraction.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2019-03-04 20:51:46 +0100
committerPatric Stout <truebrain@openttd.org>2019-03-05 22:22:00 +0100
commit1c5ea330994f183438a47cafd382bfdb53b24888 (patch)
tree752a86510e2beef7168971d05211415d467ef7da /src/network/core/os_abstraction.h
parentaa350528dfbfc8175f140202252cfdc6dbf46aa8 (diff)
downloadopenttd-1c5ea330994f183438a47cafd382bfdb53b24888.tar.xz
Fix: warnings when compiling for a recent version of Haiku
This might break older Haiku versions, but it is hard to tell.
Diffstat (limited to 'src/network/core/os_abstraction.h')
-rw-r--r--src/network/core/os_abstraction.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/network/core/os_abstraction.h b/src/network/core/os_abstraction.h
index 084f763c2..16c85d566 100644
--- a/src/network/core/os_abstraction.h
+++ b/src/network/core/os_abstraction.h
@@ -63,7 +63,7 @@ typedef unsigned long in_addr_t;
# 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(__HAIKU__) && !defined(__INNOTEK_LIBC__) \
+# if !defined(__sgi__) && !defined(SUNOS) && !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
@@ -84,10 +84,6 @@ typedef unsigned long in_addr_t;
# include <netdb.h>
#endif /* UNIX */
-#ifdef __HAIKU__
- #define IPV6_V6ONLY 27
-#endif
-
/* OS/2 stuff */
#if defined(__OS2__)
# define SOCKET int