2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

gettimeofday.h is no longer require (prototype in port_after.h).

This commit is contained in:
Mark Andrews 2001-11-01 05:50:19 +00:00
parent c82af3a7f1
commit ca6cee1837
2 changed files with 2 additions and 11 deletions

View File

@ -1,5 +1,5 @@
#ifndef LINT #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 #endif
#include "port_before.h" #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. * gettimeofday() occasionally returns invalid tv_usec on some platforms.
*/ */
#define MILLION 1000000 #define MILLION 1000000
#undef gettimeofday
#include "gettimeofday.h"
int int
isc__gettimeofday(struct timeval *tp, struct timezone *tzp) { isc__gettimeofday(struct timeval *tp, struct timezone *tzp) {
int res; int res;
#undef gettimeofday
res = gettimeofday(tp, tzp); res = gettimeofday(tp, tzp);
if (res < 0) if (res < 0)
return (res); return (res);

View File

@ -1,7 +0,0 @@
#ifndef gettimeofday_h
#define gettimeofday_h
#include <sys/time.h>
int isc__gettimeofday(struct timeval *tp, struct timezone *tzp);
#endif