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.
This commit is contained in:
Eric van Gyzen 2015-12-08 16:09:48 +00:00
parent 65ff3638df
commit d7acdd2f9b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291994

View file

@ -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>