#include <not-cancel.h>
#include <kernel-features.h>
#include <nss.h>
+#include <struct___timespec64.h>
#include "nscd-client.h"
/* Handle the case where the poll() call is interrupted by a
signal. We cannot just use TEMP_FAILURE_RETRY since it might
lead to infinite loops. */
- struct timespec now;
- __clock_gettime (CLOCK_REALTIME, &now);
- long int end = (now.tv_sec * 1000 + usectmo
- + (now.tv_nsec + 500000) / 1000000);
+ struct __timespec64 now;
+ __clock_gettime64 (CLOCK_REALTIME, &now);
+ int64_t end = (now.tv_sec * 1000 + usectmo
+ + (now.tv_nsec + 500000) / 1000000);
long int timeout = usectmo;
while (1)
{
break;
/* Recompute the timeout time. */
- __clock_gettime (CLOCK_REALTIME, &now);
+ __clock_gettime64 (CLOCK_REALTIME, &now);
timeout = end - ((now.tv_sec * 1000
+ (now.tv_nsec + 500000) / 1000000));
}
memcpy (reqdata->key, key, keylen);
bool first_try = true;
- struct timespec tvend = { 0, 0 };
+ struct __timespec64 tvend = { 0, 0 };
while (1)
{
#ifndef MSG_NOSIGNAL
/* The daemon is busy wait for it. */
int to;
- struct timespec now;
- __clock_gettime (CLOCK_REALTIME, &now);
+ struct __timespec64 now;
+ __clock_gettime64 (CLOCK_REALTIME, &now);
if (first_try)
{
tvend.tv_nsec = now.tv_nsec;