Hash :
e07d7c40
Author :
Date :
2012-07-06T02:28:29
sys_time: allow too-wide tv_sec * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct timeval even if tv_sec is wider than time_t. This allows OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c, as without this patch gnulib replaces struct timeval and OpenBSD futimes therefore has a type mismatch. * doc/posix-headers/sys_time.texi: Mention this.
@node sys/time.h
@section @file{sys/time.h}
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_time.h.html}
Gnulib module: sys_time
Portability problems fixed by Gnulib:
@itemize
@item
This header file is missing on some platforms:
MSVC 9.
@item
@samp{struct timeval} is not defined on some platforms.
@item
@samp{struct timeval} is defined with a @code{tv_sec} type that is
narrower than @code{time_t}
on some native Windows platforms:
mingw64 in 64-bit mode,
mingw64 in 32-bit mode when @code{__MINGW_USE_VC2005_COMPAT} is defined,
MSVC 9 in 64-bit mode,
MSVC 9 in 32-bit mode when @code{_USE_32BIT_TIME_T} is not defined.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
@samp{struct timeval} is defined with a @code{tv_sec} type that is
wider than @code{time_t}:
OpenBSD 5.1 in 64-bit mode.
@end itemize