summaryrefslogtreecommitdiff
path: root/dev-scheme/gauche/files/gauche-0.9.5-bsd.patch
blob: 615020df8dfecc132227fe2fcdea0a230ba28a2a (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
commit da2ea76503e8f1784d0f0be26435d4c8e0d1b12f
Author: Shiro Kawai <shiro@acm.org>
Date:   Sat Oct 15 11:44:28 2016 -1000

    Avoid preprocessor symbols redefinition on OpenBSD

    https://sourceforge.net/p/gauche/mailman/message/35429549/

diff --git a/ext/net/gauche-net.h b/ext/net/gauche-net.h
index d4f1dcd..decba64 100644
--- a/ext/net/gauche-net.h
+++ b/ext/net/gauche-net.h
@@ -362,8 +362,12 @@ extern ScmObj Scm_GetAddrinfo(const char *nodename,
                               struct addrinfo *hints);
 extern ScmObj Scm_GetNameinfo(ScmSockAddr *addr, int flags);
 
+#ifndef NI_MAXHOST
 #define NI_MAXHOST  1025
+#endif
+#ifndef NI_MAXSERV
 #define NI_MAXSERV    32
+#endif
 
 #endif /* HAVE_IPV6 */