X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/4ebe9e295b974622f802229ca8e371ee6df9525a..f6cc1f750a321b2c6e30637963d3e624c7a8e5ae:/ev.h diff --git a/ev.h b/ev.h index bd023a7..ad9bb8e 100644 --- a/ev.h +++ b/ev.h @@ -66,8 +66,6 @@ typedef double ev_tstamp; /*****************************************************************************/ -#include /* for size_t */ - #if EV_STAT_ENABLE # include #endif @@ -314,6 +312,7 @@ union ev_any_watcher #define EVFLAG_AUTO 0x00000000UL /* not quite a mask */ /* flag bits */ #define EVFLAG_NOENV 0x01000000UL /* do NOT consult environment */ +#define EVFLAG_FORKCHECK 0x02000000UL /* check for a fork in each iteration */ /* method bits to be ored together */ #define EVBACKEND_SELECT 0x00000001UL /* about anywhere */ #define EVBACKEND_POLL 0x00000002UL /* !win */ @@ -338,7 +337,7 @@ ev_tstamp ev_time (void); * or take some potentially destructive action. * The default is your system realloc function. */ -void ev_set_allocator (void *(*cb)(void *ptr, size_t size)); +void ev_set_allocator (void *(*cb)(void *ptr, long size)); /* set the callback function to call on a * retryable syscall error