summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-09-12 19:35:31 +0000
committerguenther <guenther@openbsd.org>2016-09-12 19:35:31 +0000
commit407745eaed7437f39c660f784a0b6f7c9469e7c0 (patch)
tree499f15ba9b0842985d9bfc6a711eba076ad1d21b
parentCorrectly account for fragments larger than a page size (diff)
downloadwireguard-openbsd-407745eaed7437f39c660f784a0b6f7c9469e7c0.tar.xz
wireguard-openbsd-407745eaed7437f39c660f784a0b6f7c9469e7c0.zip
Change the (unused) restimespec member of __res_state from a timespec
to a local equivalent to eliminate a dependency on <sys/time.h> being included ok deraadt@ millert@
-rw-r--r--include/resolv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/resolv.h b/include/resolv.h
index c786e0e227a..ba38c70968f 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: resolv.h,v 1.20 2015/09/25 23:32:51 guenther Exp $ */
+/* $OpenBSD: resolv.h,v 1.21 2016/09/12 19:35:31 guenther Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -148,7 +148,7 @@ struct __res_state {
u_int32_t mask;
} sort_list[MAXRESOLVSORT];
char lookups[MAXDNSLUS];
- struct timespec restimespec;
+ struct { time_t __res_sec; long __res_nsec; } restimespec;
time_t reschktime;
};