Browse Source

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@
OPENBSD_6_1
guenther 8 years ago
parent
commit
11f3477fd6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/include/resolv.h

+ 2
- 2
src/include/resolv.h View File

@ -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. * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -148,7 +148,7 @@ struct __res_state {
u_int32_t mask; u_int32_t mask;
} sort_list[MAXRESOLVSORT]; } sort_list[MAXRESOLVSORT];
char lookups[MAXDNSLUS]; char lookups[MAXDNSLUS];
struct timespec restimespec;
struct { time_t __res_sec; long __res_nsec; } restimespec;
time_t reschktime; time_t reschktime;
}; };


Loading…
Cancel
Save