summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-04-27 23:24:34 +0000
committerLennart Poettering <lennart@poettering.net>2006-04-27 23:24:34 +0000
commitf020c14e4f1eb6b643ff673d0b5c35bc41fd4595 (patch)
tree91529efd7bf64aea9e53bf7191a6eb92cb46e3f4 /src/util.h
parentd2b78eef168894934102d0bb05623622c15700d9 (diff)
* 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
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