Explorar o código

Fix segfault in bandwidth-server-many-up on inet_ntoa() call

Stéphane Raimbault %!s(int64=14) %!d(string=hai) anos
pai
achega
ab57e6dfda
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      tests/bandwidth-server-many-up.c

+ 2 - 0
tests/bandwidth-server-many-up.c

@@ -28,6 +28,8 @@
 #include <ws2tcpip.h>
 #else
 #include <netinet/in.h>
+/* Required by inet_ntoa() to avoid a segfault! */
+#include <arpa/inet.h>
 #endif
 
 #define NB_CONNECTION    5