From f020c14e4f1eb6b643ff673d0b5c35bc41fd4595 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 27 Apr 2006 23:24:34 +0000 Subject: * implement a "minimal" mode * add configure option to allow building of nss-mdns without legacy mDNS queries git-svn-id: file:///home/lennart/svn/public/nss-mdns/trunk@91 0ee8848e-81ea-0310-a63a-f631d1a40d77 --- src/util.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/util.h') 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 #include +#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 -- cgit