From 0624ec616fcc680994c9b674c8168531b1c1b46b Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Thu, 5 Apr 2018 21:02:04 +0200 Subject: Fixed socklen_t typedef conflict in enet It is reported as https://github.com/lsalzman/enet/issues/90 but unfixed in upstream so far... --- libs/enet/unix.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs') 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 -- cgit v1.2.3-70-g09d2