From eb4c179282f56e669bf017fb939faf4e3ccf9733 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Tue, 7 Oct 2014 17:14:34 +0200 Subject: [PATCH] closes #1785 - compile on platforms w/o SO_TIMESTAMP --- pdns/misc.cc | 2 ++ pdns/nameserver.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pdns/misc.cc b/pdns/misc.cc index 41fb452586..5f28dc966e 100644 --- a/pdns/misc.cc +++ b/pdns/misc.cc @@ -910,7 +910,9 @@ uint32_t burtle(const unsigned char* k, uint32_t length, uint32_t initval) void setSocketTimestamps(int fd) { +#ifdef SO_TIMESTAMP int on=1; if (setsockopt(fd, SOL_SOCKET, SO_TIMESTAMP, (char*)&on, sizeof(on)) < 0 ) L<cmsg_level == SOL_SOCKET) && (cmsg->cmsg_type == SO_TIMESTAMP) && @@ -346,6 +347,7 @@ static bool HarvestTimestamp(struct msghdr* msgh, struct timeval* tv) return true; } } +#endif return false; } -- 2.47.2