summaryrefslogtreecommitdiff
path: root/package/tcp_wrappers/patches/patch-socket_c
blob: 94f7d4f15525bc7e62087f3b06f7cb7c8dea07e9 (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
--- tcp_wrappers_7.6.orig/socket.c	1997-03-21 19:27:25.000000000 +0100
+++ tcp_wrappers_7.6/socket.c	2009-06-05 18:45:03.000000000 +0200
@@ -76,7 +76,11 @@ struct request_info *request;
 {
     static struct sockaddr_in client;
     static struct sockaddr_in server;
+#if !defined (__GLIBC__)
     int     len;
+#else /* __GLIBC__ */
+    size_t  len;
+#endif /* __GLIBC__ */
     char    buf[BUFSIZ];
     int     fd = request->fd;
 
@@ -224,7 +228,11 @@ int     fd;
 {
     char    buf[BUFSIZ];
     struct sockaddr_in sin;
+#if !defined(__GLIBC__)
     int     size = sizeof(sin);
+#else /* __GLIBC__ */
+    size_t  size = sizeof(sin);
+#endif /* __GLIBC__ */
 
     /*
      * Eat up the not-yet received datagram. Some systems insist on a