--- libev/ev.h 2007/11/27 10:59:11 1.72 +++ libev/ev.h 2007/11/27 19:41:52 1.73 @@ -66,6 +66,8 @@ /*****************************************************************************/ +#include /* for size_t */ + #if EV_STAT_ENABLE # include #endif @@ -334,7 +336,7 @@ * or take some potentially destructive action. * The default is your system realloc function. */ -void ev_set_allocator (void *(*cb)(void *ptr, long size)); +void ev_set_allocator (void *(*cb)(void *ptr, size_t size)); /* set the callback function to call on a * retryable syscall error