1*549b59edSchristos /* $NetBSD: time.h,v 1.3 2021/08/14 16:14:55 christos Exp $ */ 24e6df137Slukem 32de962bdSlukem /* Generic time.h */ 4d11b170bStron /* $OpenLDAP$ */ 52de962bdSlukem /* This work is part of OpenLDAP Software <http://www.openldap.org/>. 62de962bdSlukem * 7*549b59edSchristos * Copyright 1998-2021 The OpenLDAP Foundation. 82de962bdSlukem * All rights reserved. 92de962bdSlukem * 102de962bdSlukem * Redistribution and use in source and binary forms, with or without 112de962bdSlukem * modification, are permitted only as authorized by the OpenLDAP 122de962bdSlukem * Public License. 132de962bdSlukem * 142de962bdSlukem * A copy of this license is available in file LICENSE in the 152de962bdSlukem * top-level directory of the distribution or, alternatively, at 162de962bdSlukem * <http://www.OpenLDAP.org/license.html>. 172de962bdSlukem */ 182de962bdSlukem 192de962bdSlukem #ifndef _AC_TIME_H 202de962bdSlukem #define _AC_TIME_H 212de962bdSlukem 222de962bdSlukem #ifdef TIME_WITH_SYS_TIME 232de962bdSlukem # include <sys/time.h> 242de962bdSlukem # include <time.h> 252de962bdSlukem #elif defined(HAVE_SYS_TIME_H) 262de962bdSlukem # include <sys/time.h> 272de962bdSlukem # ifdef HAVE_SYS_TIMEB_H 282de962bdSlukem # include <sys/timeb.h> 292de962bdSlukem # endif 302de962bdSlukem #else 312de962bdSlukem # include <time.h> 322de962bdSlukem #endif 332de962bdSlukem 34*549b59edSchristos #if defined(_WIN32) && !defined(HAVE_CLOCK_GETTIME) 35*549b59edSchristos struct timespec { 36*549b59edSchristos time_t tv_sec; 37*549b59edSchristos int tv_nsec; 38*549b59edSchristos }; 39*549b59edSchristos #endif 40*549b59edSchristos 412de962bdSlukem #endif /* _AC_TIME_H */ 42