summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorvangyzen <vangyzen@FreeBSD.org>2015-12-08 16:09:48 +0000
committervangyzen <vangyzen@FreeBSD.org>2015-12-08 16:09:48 +0000
commit81148bc3733eed7cb85161f70f125d745ab9f63f (patch)
tree0a229b728277f0b51380ad28416feb2458908a4c /include
parentca13483a3ceb41301eee9d9d194676056a9b304a (diff)
downloadFreeBSD-src-81148bc3733eed7cb85161f70f125d745ab9f63f.zip
FreeBSD-src-81148bc3733eed7cb85161f70f125d745ab9f63f.tar.gz
resolver: fix the build of some ports, broken by r289315
r289315 required time_t and struct timespec to be defined before including <resolv.h>. This broke the build of net-mgmt/sx, at least. Include <sys/timespec.h> in resolv.h to fix this with minimal pollution. Reported by: Raphael Kubo da Costa <rakuco> MFC after: 3 days Sponsored by: Dell Inc.
Diffstat (limited to 'include')
-rw-r--r--include/resolv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/resolv.h b/include/resolv.h
index 78da374..f372f94 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -57,6 +57,7 @@
#include <sys/types.h>
#include <sys/cdefs.h>
#include <sys/socket.h>
+#include <sys/timespec.h>
#include <stdio.h>
#include <arpa/nameser.h>
OpenPOWER on IntegriCloud