summaryrefslogtreecommitdiff
path: root/misc/root/patches/patch-aj
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-12-28 01:59:26 +0000
committerwiz <wiz@pkgsrc.org>2000-12-28 01:59:26 +0000
commit67d2041b9249b6148e93b0f4e9f6658788ac5ebf (patch)
treec47f2e2ba696c570a3ac19fa670dd97f403949c3 /misc/root/patches/patch-aj
parent1d9e609c599a493ddc3a9719bb19a5359ddf7f30 (diff)
downloadpkgsrc-67d2041b9249b6148e93b0f4e9f6658788ac5ebf.tar.gz
Fix compilation on alpha.
Diffstat (limited to 'misc/root/patches/patch-aj')
-rw-r--r--misc/root/patches/patch-aj40
1 files changed, 40 insertions, 0 deletions
diff --git a/misc/root/patches/patch-aj b/misc/root/patches/patch-aj
new file mode 100644
index 00000000000..475135432e1
--- /dev/null
+++ b/misc/root/patches/patch-aj
@@ -0,0 +1,40 @@
+$NetBSD: patch-aj,v 1.1 2000/12/28 02:16:27 wiz Exp $
+
+--- src/UNIX_UnixSystem.cxx.orig Tue Nov 2 11:38:04 1999
++++ src/UNIX_UnixSystem.cxx
+@@ -1353,9 +1353,9 @@
+ // Get Internet Protocol (IP) address of host and port #.
+
+ struct sockaddr_in addr;
+-#if defined(R__AIX) || defined(R__FBSD)
++#if defined(R__AIX)
+ size_t len = sizeof(addr);
+-#elif defined(R__GLIBC)
++#elif defined(R__GLIBC) || defined(R__FBSD)
+ socklen_t len = sizeof(addr);
+ #else
+ int len = sizeof(addr);
+@@ -1391,9 +1391,9 @@
+ // Get Internet Protocol (IP) address of remote host and port #.
+
+ struct sockaddr_in addr;
+-#if defined(R__AIX) || defined(R__FBSD)
++#if defined(R__AIX)
+ size_t len = sizeof(addr);
+-#elif defined(R__GLIBC)
++#elif defined(R__GLIBC) || defined(R__FBSD)
+ socklen_t len = sizeof(addr);
+ #else
+ int len = sizeof(addr);
+@@ -1718,10 +1718,8 @@
+
+ if (sock < 0) return -1;
+
+-#if defined(R__GLIBC) || defined(_AIX43)
++#if defined(R__GLIBC) || defined(_AIX43) || defined(R__FBSD)
+ socklen_t optlen = sizeof(*val);
+-#elif defined(R__FBSD)
+- size_t optlen = sizeof(*val);
+ #else
+ int optlen = sizeof(*val);
+ #endif