瀏覽代碼

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 {