summaryrefslogtreecommitdiff
path: root/package/tcp_wrappers/patches/patch-workarounds_c
blob: d225b888ed68c689a078a7a36ca976f5b4f778fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- tcp_wrappers_7.6.orig/workarounds.c	1996-03-19 16:22:26.000000000 +0100
+++ tcp_wrappers_7.6/workarounds.c	2009-06-05 18:45:03.000000000 +0200
@@ -163,7 +163,11 @@ int    *fromlen;
 int     fix_getpeername(sock, sa, len)
 int     sock;
 struct sockaddr *sa;
+#if !defined(__GLIBC__)
 int    *len;
+#else /* __GLIBC__ */
+size_t *len;
+#endif /* __GLIBC__ */
 {
     int     ret;
     struct sockaddr_in *sin = (struct sockaddr_in *) sa;