aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLee Salzman <[email protected]>2021-04-25 23:50:39 -0400
committerLee Salzman <[email protected]>2021-04-25 23:50:39 -0400
commite8dbb360fb4420b013a7b14813ed25b5287df71a (patch)
treede9ea402d54daac1235326e9333c6fe25fa061f5
parent0286dcdb3481966e0f2c2cabbc468a4b299adf5c (diff)
downloadenet-e8dbb360fb4420b013a7b14813ed25b5287df71a.tar.gz
enet-e8dbb360fb4420b013a7b14813ed25b5287df71a.zip
better socklen_t detection
-rw-r--r--unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix.c b/unix.c
index a636f03..491a259 100644
--- a/unix.c
+++ b/unix.c
@@ -53,7 +53,7 @@
#include <poll.h>
#endif
-#ifndef HAS_SOCKLEN_T
+#if !defined(HAS_SOCKLEN_T) && !defined(__socklen_t_defined)
typedef int socklen_t;
#endif