From 132029bf442d1990f6850844ddcc35c7888d1d37 Mon Sep 17 00:00:00 2001 From: Garry Zacheiss Date: Thu, 14 Apr 2005 17:37:52 +0000 Subject: Remove code to set SO_BSDCOMPAT. Modern Linux complains about it being obsolete. --- lib/ZOpenPort.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib/ZOpenPort.c') diff --git a/lib/ZOpenPort.c b/lib/ZOpenPort.c index b8241db..75cec22 100644 --- a/lib/ZOpenPort.c +++ b/lib/ZOpenPort.c @@ -22,9 +22,6 @@ Code_t ZOpenPort(port) { struct sockaddr_in bindin; int len; -#ifdef SO_BSDCOMPAT - int on = 1; -#endif (void) ZClosePort(); @@ -33,11 +30,6 @@ Code_t ZOpenPort(port) return (errno); } -#ifdef SO_BSDCOMPAT - /* Prevent Linux from giving us socket errors we don't care about. */ - setsockopt(__Zephyr_fd, SOL_SOCKET, SO_BSDCOMPAT, &on, sizeof(on)); -#endif - bindin.sin_family = AF_INET; if (port && *port) -- cgit v1.2.3