summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index b227ce0..e2334ad 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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