summaryrefslogtreecommitdiff
path: root/gl/sys_time.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/sys_time.in.h')
-rw-r--r--gl/sys_time.in.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gl/sys_time.in.h b/gl/sys_time.in.h
index 0689bcb2e6..d4319d25ca 100644
--- a/gl/sys_time.in.h
+++ b/gl/sys_time.in.h
@@ -1,6 +1,6 @@
/* Provide a more complete sys/time.h.
- Copyright (C) 2007-2010 Free Software Foundation, Inc.
+ Copyright (C) 2007-2011 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -51,11 +51,16 @@ extern "C" {
# endif
# if ! @HAVE_STRUCT_TIMEVAL@
+
+# if !GNULIB_defined_struct_timeval
struct timeval
{
time_t tv_sec;
long int tv_usec;
};
+# define GNULIB_defined_struct_timeval 1
+# endif
+
# endif
# ifdef __cplusplus