소스 검색

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

Stéphane Raimbault 14 년 전
부모
커밋
ab57e6dfda
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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