--- libev/ev.c 2012/06/11 12:50:50 1.446 +++ libev/ev.c 2012/06/19 12:29:43 1.447 @@ -1193,12 +1193,11 @@ static void * ev_realloc_emul (void *ptr, long size) EV_THROW { -#if __GLIBC__ - return realloc (ptr, size); -#else /* some systems, notably openbsd and darwin, fail to properly * implement realloc (x, 0) (as required by both ansi c-89 and * the single unix specification, so work around them here. + * recently, also (at least) fedora and debian started breaking it, + * despite documenting it otherwise. */ if (size) @@ -1206,7 +1205,6 @@ free (ptr); return 0; -#endif } static void *(*alloc)(void *ptr, long size) EV_THROW = ev_realloc_emul;