diff options
author | cy <cy@FreeBSD.org> | 2013-09-18 16:20:02 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2013-09-18 16:20:02 +0800 |
commit | 1680f70e1ddf995a9563e81a59735572bf4842d6 (patch) | |
tree | 48d3e7de08a28767a7d513c6ac21921acd7f8231 /comms | |
parent | c208d88accca5f59de795244b5b1516013e42713 (diff) | |
download | freebsd-ports-gnome-1680f70e1ddf995a9563e81a59735572bf4842d6.tar.gz freebsd-ports-gnome-1680f70e1ddf995a9563e81a59735572bf4842d6.tar.zst freebsd-ports-gnome-1680f70e1ddf995a9563e81a59735572bf4842d6.zip |
Fix build under 10-CURRENT.
Diffstat (limited to 'comms')
-rw-r--r-- | comms/conserver/files/patch-etc-conserver-master.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/comms/conserver/files/patch-etc-conserver-master.c b/comms/conserver/files/patch-etc-conserver-master.c new file mode 100644 index 000000000000..6c45ce8e02dc --- /dev/null +++ b/comms/conserver/files/patch-etc-conserver-master.c @@ -0,0 +1,23 @@ +--- etc/conserver/master.c.orig 2000-08-02 11:39:42.000000000 -0700 ++++ etc/conserver/master.c 2013-09-18 00:48:10.621087079 -0700 +@@ -200,17 +200,17 @@ + + if ((msfd=socket(AF_INET, SOCK_STREAM, 0)) < 0) { + fprintf(stderr, "%s: socket: %s\n", progname, strerror(errno)); +- return; ++ return 0; + } + #if defined(SO_REUSEADDR) && defined(SOL_SOCKET) + if (setsockopt(msfd, SOL_SOCKET, SO_REUSEADDR, (char *)&iTrue, sizeof(iTrue))<0) { + fprintf(stderr, "%s: setsockopt: %s\n", progname, strerror(errno)); +- return; ++ return 0; + } + #endif + if (bind(msfd, (struct sockaddr *)&master_port, sizeof(master_port))<0) { + fprintf(stderr, "%s: bind: %s\n", progname, strerror(errno)); +- return; ++ return 0; + } + if (listen(msfd, SOMAXCONN) < 0) { + fprintf(stderr, "%s: listen: %s\n", progname, strerror(errno)); |