1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Unbreak the build on 5.x without MSG_NOSIGNAL. Also submitted upstream.

This commit is contained in:
Peter Pentchev 2006-11-08 16:02:44 +00:00
parent 771be9e1d3
commit 0746363dc2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=176824

View File

@ -0,0 +1,23 @@
Index: server/net.h
===================================================================
--- server/net.h (revision 741)
+++ server/net.h (revision 742)
@@ -17,11 +17,18 @@
*
******************************************************************************/
+#include <sys/types.h>
+#include <sys/socket.h>
+
#include <stdlib.h>
#include <unistd.h>
#include <glib.h>
+#ifndef MSG_NOSIGNAL
+#define MSG_NOSIGNAL 0
+#endif
+
extern const int proto_major;
extern const int proto_minor;