blob: 475135432e1d17cc48d461966a33c33de06b6bc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
|