Branch
Hash :
1d546b1c
Author :
Date :
2023-03-17T13:31:11
time: Fix test failure on native Windows. * m4/time.m4 (gl_FUNC_TIME): Guess that it does not work on native Windows. * modules/time (Depends-on): Add gettimeofday. * doc/posix-functions/time.texi: Mention the bug on Windows.
Description:
time() function: return current time.
Files:
lib/time.c
m4/time.m4
Depends-on:
time-h
gettimeofday [test $REPLACE_TIME = 1]
configure.ac:
gl_FUNC_TIME
gl_CONDITIONAL([GL_COND_OBJ_TIME], [test $REPLACE_TIME = 1])
AM_COND_IF([GL_COND_OBJ_TIME], [
gl_PREREQ_TIME
])
gl_TIME_MODULE_INDICATOR([time])
Makefile.am:
if GL_COND_OBJ_TIME
lib_SOURCES += time.c
endif
Include:
<time.h>
License:
LGPLv2+
Maintainer:
all