mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
1031. [bug] libbind.a: isc__gettimeofday() infinite recursion.
[RT #1858]
This commit is contained in:
parent
4186249fea
commit
f08782f092
3 changed files with 8 additions and 2 deletions
2
CHANGES
2
CHANGES
|
|
@ -1,3 +1,5 @@
|
|||
1031. [bug] libbind.a: isc__gettimeofday() infinite recursion.
|
||||
[RT #1858]
|
||||
|
||||
1030. [bug] On systems with no resolv.conf file, nsupdate
|
||||
exited with an error rather than defaulting
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
#ifndef LINT
|
||||
static const char rcsid[] = "$Id: gettimeofday.c,v 1.1 2001/03/29 06:30:32 marka Exp $";
|
||||
static const char rcsid[] = "$Id: gettimeofday.c,v 1.2 2001/10/08 00:33:45 marka Exp $";
|
||||
#endif
|
||||
|
||||
#include "port_before.h"
|
||||
#undef gettimeofday
|
||||
#include <stdio.h>
|
||||
#include <syslog.h>
|
||||
#include <sys/time.h>
|
||||
|
|
@ -21,6 +20,7 @@ int
|
|||
isc__gettimeofday(struct timeval *tp, struct timezone *tzp) {
|
||||
int res;
|
||||
|
||||
#undef gettimeofday
|
||||
res = gettimeofday(tp, tzp);
|
||||
if (res < 0)
|
||||
return (res);
|
||||
|
|
|
|||
|
|
@ -335,7 +335,11 @@ int setpassent(int stayopen);
|
|||
#endif
|
||||
|
||||
#define gettimeofday isc__gettimeofday
|
||||
#ifdef NEED_GETTIMEOFDAY
|
||||
int isc__gettimeofday(struct timeval *tvp, struct _TIMEZONE *tzp);
|
||||
#else
|
||||
int isc__gettimeofday(struct timeval *tp, struct timezone *tzp);
|
||||
#endif
|
||||
|
||||
int getnetgrent(const char **machinep, const char **userp,
|
||||
const char **domainp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue