diff options
author | Garry Zacheiss <zacheiss@mit.edu> | 2005-04-14 17:37:52 +0000 |
---|---|---|
committer | Garry Zacheiss <zacheiss@mit.edu> | 2005-04-14 17:37:52 +0000 |
commit | 132029bf442d1990f6850844ddcc35c7888d1d37 (patch) | |
tree | 96d4adf6a4dd05571781b2d6f156bdbafd271863 /lib | |
parent | ddc84d0a4abfe46b6cfac00340d1ad88e6a28009 (diff) |
Remove code to set SO_BSDCOMPAT. Modern Linux complains about it being
obsolete.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ZOpenPort.c | 8 |
1 files changed, 0 insertions, 8 deletions
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) |