OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../libev/realloc.patch
  5. # Copyright (C) 2008 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./ev.c.orig 2008-09-27 15:15:14.000000000 +0000
  17. +++ ./ev.c 2008-09-27 15:17:31.000000000 +0000
  18. @@ -399,7 +399,7 @@
  19. }
  20. static void *
  21. -ev_realloc_emul (void *ptr, long size)
  22. +ev_realloc_emul (void *ptr, size_t size)
  23. {
  24. /* some systems, notably openbsd and darwin, fail to properly
  25. * implement realloc (x, 0) (as required by both ansi c-98 and
  26. @@ -413,10 +413,10 @@
  27. return 0;
  28. }
  29. -static void *(*alloc)(void *ptr, long size) = ev_realloc_emul;
  30. +static void *(*alloc)(void *ptr, size_t size) = ev_realloc_emul;
  31. void
  32. -ev_set_allocator (void *(*cb)(void *ptr, long size))
  33. +ev_set_allocator (void *(*cb)(void *ptr, size_t size))
  34. {
  35. alloc = cb;
  36. }
  37. --- ./ev.h.orig 2008-09-27 15:15:10.000000000 +0000
  38. +++ ./ev.h 2008-09-27 15:15:56.000000000 +0000
  39. @@ -415,7 +415,7 @@
  40. * or take some potentially destructive action.
  41. * The default is your system realloc function.
  42. */
  43. -void ev_set_allocator (void *(*cb)(void *ptr, long size));
  44. +void ev_set_allocator (void *(*cb)(void *ptr, size_t size));
  45. /* set the callback function to call on a
  46. * retryable syscall error