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.9 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 - 2013 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. --- a/ev.c 2013-03-01 12:10:48.000000000 +0100
  17. +++ b/ev.c 2013-08-08 16:55:06.144756967 +0200
  18. @@ -1411,7 +1411,7 @@
  19. }
  20. static void *
  21. -ev_realloc_emul (void *ptr, long size) EV_THROW
  22. +ev_realloc_emul (void *ptr, size_t size) EV_THROW
  23. {
  24. /* some systems, notably openbsd and darwin, fail to properly
  25. * implement realloc (x, 0) (as required by both ansi c-89 and
  26. @@ -1427,10 +1427,10 @@
  27. return 0;
  28. }
  29. -static void *(*alloc)(void *ptr, long size) EV_THROW = ev_realloc_emul;
  30. +static void *(*alloc)(void *ptr, size_t size) EV_THROW = ev_realloc_emul;
  31. void ecb_cold
  32. -ev_set_allocator (void *(*cb)(void *ptr, long size) EV_THROW) EV_THROW
  33. +ev_set_allocator (void *(*cb)(void *ptr, size_t size) EV_THROW) EV_THROW
  34. {
  35. alloc = cb;
  36. }
  37. --- a/ev.h 2013-03-01 12:05:29.000000000 +0100
  38. +++ b/ev.h 2013-08-08 16:57:38.560245532 +0200
  39. @@ -536,7 +536,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) EV_THROW) EV_THROW;
  44. +EV_API_DECL void ev_set_allocator (void *(*cb)(void *ptr, size_t size) EV_THROW) EV_THROW;
  45. /* set the callback function to call on a
  46. * retryable syscall error