diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-09-12 19:35:32 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-09-12 19:35:32 +0000 |
commit | a3ab58b172a1699a973579ba4d607f0babf35d27 (patch) | |
tree | 6eb265d613111c4ccddd71d723fa99b0bc25ddf2 /include/resolv.h | |
parent | 74d948e285271b2f0d6d5193eca8f68bdfe85d28 (diff) |
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@
Diffstat (limited to 'include/resolv.h')
-rw-r--r-- | include/resolv.h | 4 |
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; }; |