Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/apache2/mDNSResponder/dist/mDNSShared Fix setsockop...



details:   https://anonhg.NetBSD.org/src/rev/d71f4bd95741
branches:  trunk
changeset: 791361:d71f4bd95741
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Nov 14 08:26:54 2013 +0000

description:
Fix setsockopt(2) error.

diffstat:

 external/apache2/mDNSResponder/dist/mDNSShared/uds_daemon.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 773179750d24 -r d71f4bd95741 external/apache2/mDNSResponder/dist/mDNSShared/uds_daemon.c
--- a/external/apache2/mDNSResponder/dist/mDNSShared/uds_daemon.c       Thu Nov 14 07:45:05 2013 +0000
+++ b/external/apache2/mDNSResponder/dist/mDNSShared/uds_daemon.c       Thu Nov 14 08:26:54 2013 +0000
@@ -3852,8 +3852,10 @@
        dnssd_sockaddr_t cliaddr;
        dnssd_socklen_t len = (dnssd_socklen_t) sizeof(cliaddr);
        dnssd_sock_t sd = accept(fd, (struct sockaddr*) &cliaddr, &len);
-#if defined(SO_NOSIGPIPE) || defined(_WIN32)
-       const unsigned long optval = 1;
+#if defined(SO_NOSIGPIPE)
+       int optval = 1;
+#elif defined(_WIN32)
+       unsigned long optval = 1;
 #endif
 
        (void)filter; // Unused



Home | Main Index | Thread Index | Old Index