Browse Source

libuv: automatically skip ifaddrs on Solaris 10

Brad King 8 years ago
parent
commit
5651257fff
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Utilities/cmlibuv/src/unix/sunos.c

+ 4 - 0
Utilities/cmlibuv/src/unix/sunos.c

@@ -28,6 +28,10 @@
 #include <assert.h>
 #include <assert.h>
 #include <errno.h>
 #include <errno.h>
 
 
+#if !defined(SUNOS_NO_IFADDRS) && _XOPEN_SOURCE < 600
+#define SUNOS_NO_IFADDRS
+#endif
+
 #ifndef SUNOS_NO_IFADDRS
 #ifndef SUNOS_NO_IFADDRS
 # include <ifaddrs.h>
 # include <ifaddrs.h>
 #endif
 #endif