diff options
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -26,6 +26,7 @@ #include <time.h> #include <inttypes.h> +#ifdef ENABLE_LEGACY typedef uint64_t usec_t; usec_t timeval_diff(const struct timeval *a, const struct timeval *b); @@ -34,9 +35,13 @@ usec_t timeval_age(const struct timeval *tv); void timeval_add(struct timeval *tv, usec_t v); int set_nonblock(int fd); -int set_cloexec(int fd); int wait_for_write(int fd, struct timeval *end); int wait_for_read(int fd, struct timeval *end); #endif + +int set_cloexec(int fd); + + +#endif |