Browse Source

better socklen_t detection

Lee Salzman 4 years ago
parent
commit
e8dbb360fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      unix.c

+ 1 - 1
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