|
@ -608,9 +608,6 @@ ev_syserr (const char *msg) |
|
|
static void * |
|
|
static void * |
|
|
ev_realloc_emul (void *ptr, long size) |
|
|
ev_realloc_emul (void *ptr, long size) |
|
|
{ |
|
|
{ |
|
|
#if __GLIBC__ |
|
|
|
|
|
return realloc (ptr, size); |
|
|
|
|
|
#else |
|
|
|
|
|
/* some systems, notably openbsd and darwin, fail to properly
|
|
|
/* some systems, notably openbsd and darwin, fail to properly
|
|
|
* implement realloc (x, 0) (as required by both ansi c-89 and |
|
|
* implement realloc (x, 0) (as required by both ansi c-89 and |
|
|
* the single unix specification, so work around them here. |
|
|
* the single unix specification, so work around them here. |
|
@ -621,7 +618,6 @@ ev_realloc_emul (void *ptr, long size) |
|
|
|
|
|
|
|
|
free (ptr); |
|
|
free (ptr); |
|
|
return 0; |
|
|
return 0; |
|
|
#endif |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
static void *(*alloc)(void *ptr, long size) = ev_realloc_emul; |
|
|
static void *(*alloc)(void *ptr, long size) = ev_realloc_emul; |
|
|