summaryrefslogtreecommitdiff
path: root/package/tcp_wrappers/patches/patch-fix_options_c
blob: fc987965f583d292f8768313b87303640e001b8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- tcp_wrappers_7.6.orig/fix_options.c	1997-04-08 02:29:19.000000000 +0200
+++ tcp_wrappers_7.6/fix_options.c	2009-06-05 18:45:03.000000000 +0200
@@ -35,7 +35,12 @@ struct request_info *request;
 #ifdef IP_OPTIONS
     unsigned char optbuf[BUFFER_SIZE / 3], *cp;
     char    lbuf[BUFFER_SIZE], *lp;
+#if !defined(__GLIBC__)
     int     optsize = sizeof(optbuf), ipproto;
+#else /* __GLIBC__ */
+    size_t  optsize = sizeof(optbuf);
+    int     ipproto;
+#endif /* __GLIBC__ */
     struct protoent *ip;
     int     fd = request->fd;
     unsigned int opt;