diff options
Diffstat (limited to 'lib/sys_time.in.h')
-rw-r--r-- | lib/sys_time.in.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sys_time.in.h b/lib/sys_time.in.h index 539768889d0..d6c215e1f55 100644 --- a/lib/sys_time.in.h +++ b/lib/sys_time.in.h @@ -112,8 +112,12 @@ _GL_CXXALIASWARN (gettimeofday); # if defined __cplusplus && defined GNULIB_NAMESPACE namespace GNULIB_NAMESPACE { typedef ::timeval -#undef timeval +# undef timeval timeval; +# if @REPLACE_STRUCT_TIMEVAL@ +# define timeval rpl_timeval + typedef ::timeval timeval; +# endif } # endif #elif defined GNULIB_POSIXCHECK |