diff options
Diffstat (limited to 'meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/size_t.patch')
-rw-r--r-- | meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/size_t.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/size_t.patch b/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/size_t.patch new file mode 100644 index 0000000000..4db40f4c7b --- /dev/null +++ b/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/size_t.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | diff -ruN tcp_wrappers_7.6.orig/fix_options.c tcp_wrappers_7.6/fix_options.c | ||
2 | --- tcp_wrappers_7.6.orig/fix_options.c 2003-08-21 03:41:33.000000000 +0200 | ||
3 | +++ tcp_wrappers_7.6/fix_options.c 2003-08-21 03:41:27.000000000 +0200 | ||
4 | @@ -38,7 +38,11 @@ | ||
5 | #ifdef IP_OPTIONS | ||
6 | unsigned char optbuf[BUFFER_SIZE / 3], *cp; | ||
7 | char lbuf[BUFFER_SIZE], *lp; | ||
8 | +#ifdef __GLIBC__ | ||
9 | + size_t optsize = sizeof(optbuf), ipproto; | ||
10 | +#else | ||
11 | int optsize = sizeof(optbuf), ipproto; | ||
12 | +#endif | ||
13 | struct protoent *ip; | ||
14 | int fd = request->fd; | ||
15 | unsigned int opt; | ||
16 | diff -ruN tcp_wrappers_7.6.orig/socket.c tcp_wrappers_7.6/socket.c | ||
17 | --- tcp_wrappers_7.6.orig/socket.c 2003-08-21 03:41:33.000000000 +0200 | ||
18 | +++ tcp_wrappers_7.6/socket.c 2003-08-21 03:40:51.000000000 +0200 | ||
19 | @@ -90,7 +90,11 @@ | ||
20 | static struct sockaddr_in client; | ||
21 | static struct sockaddr_in server; | ||
22 | #endif | ||
23 | +#ifdef __GLIBC__ | ||
24 | + size_t len; | ||
25 | +#else | ||
26 | int len; | ||
27 | +#endif | ||
28 | char buf[BUFSIZ]; | ||
29 | int fd = request->fd; | ||
30 | |||
31 | @@ -421,7 +425,11 @@ | ||
32 | #else | ||
33 | struct sockaddr_in sin; | ||
34 | #endif | ||
35 | +#ifdef __GLIBC__ | ||
36 | + size_t size = sizeof(sin); | ||
37 | +#else | ||
38 | int size = sizeof(sin); | ||
39 | +#endif | ||
40 | |||
41 | /* | ||
42 | * Eat up the not-yet received datagram. Some systems insist on a | ||