blob: 18bdec2278f58e3dea59f63d482abb24188c0818 (
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
|
$NetBSD: patch-am,v 1.1 2002/03/08 05:18:12 jmc Exp $
--- src/ROOTD_net.cxx.orig Fri Mar 8 04:26:20 2002
+++ src/ROOTD_net.cxx Fri Mar 8 04:28:52 2002
@@ -33,6 +33,10 @@
#include <netdb.h>
#include <errno.h>
+#ifdef __NetBSD__
+#include <sys/param.h>
+#endif
+
//*KEEP,rootdp,T=C++.
#include "rootdp.h"
//*KEND.
@@ -176,7 +180,7 @@
if (gDebug > 0) {
#ifdef _AIX
size_t clilen = sizeof(tcp_cli_addr);
-#elif defined(R__GLIBC)
+#elif defined(R__GLIBC) || (defined(__NetBSD__) && __NetBSD_Version__ >= 103100000)
socklen_t clilen = sizeof(tcp_cli_addr);
#else
int clilen = sizeof(tcp_cli_addr);
@@ -206,7 +210,7 @@
again:
#ifdef _AIX
size_t clilen = sizeof(tcp_cli_addr);
-#elif defined(R__GLIBC)
+#elif defined(R__GLIBC) || (defined(__NetBSD__) && __NetBSD_Version__ >= 103100000)
socklen_t clilen = sizeof(tcp_cli_addr);
#else
int clilen = sizeof(tcp_cli_addr);
|