소스 검색

Fix MinGW make error 'MSG_NOSIGNAL' undeclared (closes #175)

Thank you Marjan Tomas.
Stéphane Raimbault 11 년 전
부모
커밋
1eabc8a010
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      tests/unit-test-server.c

+ 5 - 0
tests/unit-test-server.c

@@ -27,6 +27,11 @@
 # include <sys/socket.h>
 #endif
 
+/* For MinGW */
+#ifndef MSG_NOSIGNAL
+# define MSG_NOSIGNAL 0
+#endif
+
 #include "unit-test.h"
 
 enum {