lbry-android/recipes/netifaces/socket-ioctls.patch
Akinwale Ariwodola e08f6ee73c
add / update recipes and build changes for Python 3.6.6 compatibility (#315)
* add / update recipes and build changes for Python 3.6.6 compatibility
* include Python 3 apt packages in travis build script
* use Python 3.6 in Travis
* Enable _blake2 and _sha3 in Python 3. Remove unnecessary files.
* change zope.interface version
* update cffi version
2018-10-07 15:59:03 +01:00

29 lines
865 B
Diff

--- a/netifaces.c 2018-09-25 21:26:48.238476102 +0100
+++ b/netifaces.c 2018-09-25 21:55:14.201995669 +0100
@@ -22,6 +22,10 @@
obj = Py_InitModule3((name), (methods), (doc));
#endif
+#ifndef HAVE_SOCKET_IOCTLS
+#define HAVE_SOCKET_IOCTLS 1
+#endif
+
#ifndef WIN32
# include <sys/types.h>
@@ -178,12 +182,12 @@
# include <ifaddrs.h>
# endif /* HAVE_GETIFADDRS */
-# if !HAVE_GETIFADDRS && (!HAVE_SOCKET_IOCTLS || !HAVE_SIOCGIFCONF)
+//# if !HAVE_GETIFADDRS && (!HAVE_SOCKET_IOCTLS || !HAVE_SIOCGIFCONF)
/* If the platform doesn't define, what we need, barf. If you're seeing this,
it means you need to write suitable code to retrieve interface information
on your system. */
-# error You need to add code for your platform.
-# endif
+//# error You need to add code for your platform.
+//# endif
#else /* defined(WIN32) */