From: bert hubert Date: Tue, 7 Oct 2014 15:14:34 +0000 (+0200) Subject: closes #1785 - compile on platforms w/o SO_TIMESTAMP X-Git-Tag: rec-3.7.0-rc1~212 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb4c179282f56e669bf017fb939faf4e3ccf9733;p=thirdparty%2Fpdns.git closes #1785 - compile on platforms w/o SO_TIMESTAMP --- 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; }