mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-25 16:18:03 -04:00
gettimeofday.h is no longer require (prototype in port_after.h).
This commit is contained in:
parent
c82af3a7f1
commit
ca6cee1837
2 changed files with 2 additions and 11 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef LINT
|
||||
static const char rcsid[] = "$Id: gettimeofday.c,v 1.2 2001/10/08 00:33:45 marka Exp $";
|
||||
static const char rcsid[] = "$Id: gettimeofday.c,v 1.3 2001/11/01 05:50:19 marka Exp $";
|
||||
#endif
|
||||
|
||||
#include "port_before.h"
|
||||
|
|
@ -13,14 +13,12 @@ static const char rcsid[] = "$Id: gettimeofday.c,v 1.2 2001/10/08 00:33:45 marka
|
|||
* gettimeofday() occasionally returns invalid tv_usec on some platforms.
|
||||
*/
|
||||
#define MILLION 1000000
|
||||
|
||||
#include "gettimeofday.h"
|
||||
#undef gettimeofday
|
||||
|
||||
int
|
||||
isc__gettimeofday(struct timeval *tp, struct timezone *tzp) {
|
||||
int res;
|
||||
|
||||
#undef gettimeofday
|
||||
res = gettimeofday(tp, tzp);
|
||||
if (res < 0)
|
||||
return (res);
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
#ifndef gettimeofday_h
|
||||
#define gettimeofday_h
|
||||
#include <sys/time.h>
|
||||
|
||||
int isc__gettimeofday(struct timeval *tp, struct timezone *tzp);
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue