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 - 2012 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. --- libev-4.11/ev.c.orig 2012-02-04 20:09:52.000000000 +0100
  17. +++ libev-4.11/ev.c 2012-05-09 14:52:44.986990152 +0200
  18. @@ -1132,7 +1132,7 @@
  19. }
  20. static void *
  21. -ev_realloc_emul (void *ptr, long size)
  22. +ev_realloc_emul (void *ptr, size_t size)
  23. {
  24. #if __GLIBC__
  25. return realloc (ptr, size);
  26. @@ -1150,10 +1150,10 @@
  27. #endif
  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 ecb_cold
  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. --- libev-4.11/ev.h.orig 2012-02-04 19:54:04.000000000 +0100
  38. +++ libev-4.11/ev.h 2012-05-09 14:53:22.823653291 +0200
  39. @@ -530,7 +530,7 @@
  40. * or take some potentially destructive action.
  41. * The default is your system realloc function.
  42. */
  43. -EV_API_DECL void ev_set_allocator (void *(*cb)(void *ptr, long size));
  44. +EV_API_DECL void ev_set_allocator (void *(*cb)(void *ptr, size_t size));
  45. /* set the callback function to call on a
  46. * retryable syscall error