gated-3-6.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. *** src/gated/task.h.orig Sun May 14 14:58:18 2000
  2. --- src/gated/task.h Sun May 14 14:59:44 2000
  3. ***************
  4. *** 321,327 ****
  5. extern size_t task_recv_buffer_len;
  6. ! #if defined(SUNOS5_0) || !defined(HAVE_CMSG_SPACE)
  7. #ifndef CMSG_ALIGN
  8. #define CMSG_ALIGN(n) (((n) + 3) & ~3)
  9. #define CMSG_SPACE(l) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(l))
  10. --- 321,327 ----
  11. extern size_t task_recv_buffer_len;
  12. ! #if (defined(SUNOS5_0) || !defined(HAVE_CMSG_SPACE)) && !defined(__FreeBSD__)
  13. #ifndef CMSG_ALIGN
  14. #define CMSG_ALIGN(n) (((n) + 3) & ~3)
  15. #define CMSG_SPACE(l) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(l))
  16. --- src/gated/str.c.orig Sat Nov 24 14:43:52 2001
  17. +++ src/gated/str.c Sat Nov 24 14:43:52 2001
  18. @@ -191,7 +191,7 @@
  19. #define ARG() \
  20. _ulong = flags&LONGINT ? va_arg(ap, long) : \
  21. - flags&SHORTINT ? va_arg(ap, short) : va_arg(ap, int);
  22. + flags&SHORTINT ? va_arg(ap, int) : va_arg(ap, int);
  23. #define todigit(c) ((c) - '0')
  24. #define tochar(n) ((n) + '0')
  25. --- src/gated/str.h.orig Sat Nov 24 14:57:05 2001
  26. +++ src/gated/str.h Sat Nov 24 14:57:18 2001
  27. @@ -127,9 +127,11 @@
  28. char * gd_uplow(const char *, int);
  29. #define gd_upper(str) gd_uplow(str, TRUE)
  30. #define gd_lower(str) gd_uplow(str, FALSE)
  31. +#if 0
  32. int fprintf(FILE *, const char *, ...);
  33. int vsprintf(char *, const char *, va_list );
  34. int sprintf(char *, const char *, ...);
  35. +#endif
  36. #ifndef HAVE_STRCASECMP
  37. int strcasecmp(const char *, const char *);
  38. int strncasecmp(const char *, const char *, size_t);
  39. --- src/gatedcompat/include.h.orig Sat Nov 24 15:03:57 2001
  40. +++ src/gatedcompat/include.h Sat Nov 24 15:02:38 2001
  41. @@ -91,3 +91,4 @@
  42. #ifdef HAVE_UNISTD_H
  43. #include <unistd.h>
  44. #endif /* HAVE_UNISTD_H */
  45. +#include <stdarg.h>