rsync.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --- zlib/infcodes.c.orig Tue Mar 12 02:14:58 2002
  2. +++ zlib/infcodes.c Sun Apr 21 21:19:46 2002
  3. @@ -197,8 +197,18 @@
  4. c->mode = COPY;
  5. case COPY: /* o: copying bytes in window, waiting for space */
  6. f = q - c->sub.copy.dist;
  7. +#ifdef __FreeBSD__
  8. + {
  9. + /* Work-around for a FreeBSD gcc bug. */
  10. + volatile inflate_blocks_statef *s1 = s;
  11. +
  12. + while (f < s1->window) /* modulo window size-"while" instead */
  13. + f += s1->end - s1->window; /* of "if" handles invalid distances */
  14. + }
  15. +#else
  16. while (f < s->window) /* modulo window size-"while" instead */
  17. f += s->end - s->window; /* of "if" handles invalid distances */
  18. +#endif
  19. while (c->len)
  20. {
  21. NEEDOUT
  22. --- rsync.h.orig Mon Mar 25 08:29:43 2002
  23. +++ rsync.h Tue Apr 23 13:49:06 2002
  24. @@ -113,7 +113,7 @@
  25. #include <string.h>
  26. #endif
  27. -#ifdef HAVE_MALLOC_H
  28. +#if defined(HAVE_MALLINFO) && defined(HAVE_MALLOC_H)
  29. #include <malloc.h>
  30. #endif
  31. @@ -181,10 +181,6 @@
  32. #ifdef HAVE_GLOB_H
  33. #include <glob.h>
  34. -#endif
  35. -
  36. -#ifdef HAVE_MALLOC_H
  37. -# include <malloc.h>
  38. #endif
  39. /* these are needed for the uid/gid mapping code */
  40. --- main.c.orig Tue Sep 5 19:46:43 2000
  41. +++ main.c Sat Apr 7 23:32:25 2001
  42. @@ -134 +134 @@
  43. - cmd = RSYNC_RSH;
  44. + cmd = RSYNC_SSH;
  45. --- options.c.orig Thu Mar 8 03:31:32 2001
  46. +++ options.c Thu Mar 8 03:31:32 2001
  47. @@ -141 +141 @@
  48. - rprintf(F," -e, --rsh=COMMAND specify rsh replacement\n");
  49. + rprintf(F," -e, --rsh=COMMAND specify rsh replacement (default %s)\n", RSYNC_SSH);
  50. --- rsync.h.orig Sat Aug 19 06:10:39 2000
  51. +++ rsync.h Sat Apr 7 23:31:00 2001
  52. @@ -75,4 +75,5 @@
  53. #define RSYNC_RSH "rsh"
  54. #endif
  55. +#define RSYNC_SSH "ssh"
  56. #include <sys/types.h>