libs: Import code from upstream openldap 2.5.13.
[wine.git] / libs / ldap / include / ac / time.h
blobf36b9402831552b8fadcadd128c38064d097b66e
1 /* Generic time.h */
2 /* $OpenLDAP$ */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 1998-2022 The OpenLDAP Foundation.
6 * All rights reserved.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted only as authorized by the OpenLDAP
10 * Public License.
12 * A copy of this license is available in file LICENSE in the
13 * top-level directory of the distribution or, alternatively, at
14 * <http://www.OpenLDAP.org/license.html>.
17 #ifndef _AC_TIME_H
18 #define _AC_TIME_H
20 #ifdef TIME_WITH_SYS_TIME
21 # include <sys/time.h>
22 # include <time.h>
23 #elif defined(HAVE_SYS_TIME_H)
24 # include <sys/time.h>
25 # ifdef HAVE_SYS_TIMEB_H
26 # include <sys/timeb.h>
27 # endif
28 #else
29 # include <time.h>
30 #endif
32 #if defined(_WIN32) && !defined(HAVE_CLOCK_GETTIME)
33 struct timespec {
34 time_t tv_sec;
35 int tv_nsec;
37 #endif
39 #endif /* _AC_TIME_H */