1
0

patch-fix_options_c 562 B

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