* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dispatch.c,v 1.101.2.19 2007/06/26 04:54:53 marka Exp $ */
+/* $Id: dispatch.c,v 1.101.2.20 2007/06/26 06:10:08 marka Exp $ */
#include <config.h>
#include <stdlib.h>
#include <sys/types.h>
-#include <sys/time.h>
#include <unistd.h>
#include <isc/entropy.h>
#include <isc/print.h>
#include <isc/string.h>
#include <isc/task.h>
+#include <isc/time.h>
#include <isc/util.h>
#include <dns/acl.h>
static isc_result_t
nsid_init(isc_mem_t *mctx, dns_nsid_t *nsid, isc_boolean_t usepool) {
- struct timeval now;
+ isc_time_t now;
pid_t mypid;
isc_uint16_t a1ndx, a2ndx, a3ndx, c1ndx, c2ndx, c3ndx;
int i;
- gettimeofday(&now, NULL);
+ isc_time_now(&now);
mypid = getpid();
/* Initialize the state */