summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@gmail.com>2018-04-05 21:02:04 +0200
committerErik Schilling <ablu.erikschilling@gmail.com>2018-04-05 21:02:56 +0200
commit0624ec616fcc680994c9b674c8168531b1c1b46b (patch)
treea3fc2bbecf6f1f2d00f9615aa98c25c5596de5cf /libs
parent89fef9eb4a83d110e3314b4eca47eca7763b7322 (diff)
downloadmanaserv-0624ec616fcc680994c9b674c8168531b1c1b46b.tar.gz
manaserv-0624ec616fcc680994c9b674c8168531b1c1b46b.tar.bz2
manaserv-0624ec616fcc680994c9b674c8168531b1c1b46b.tar.xz
manaserv-0624ec616fcc680994c9b674c8168531b1c1b46b.zip
Fixed socklen_t typedef conflict in enet
It is reported as https://github.com/lsalzman/enet/issues/90 but unfixed in upstream so far...
Diffstat (limited to 'libs')
-rw-r--r--libs/enet/unix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/enet/unix.c b/libs/enet/unix.c
index 19ee76f3..529fd2d8 100644
--- a/libs/enet/unix.c
+++ b/libs/enet/unix.c
@@ -49,8 +49,10 @@
#endif
#ifndef HAS_SOCKLEN_T
+#ifndef __socklen_t_defined
typedef int socklen_t;
#endif
+#endif
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0