summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2009-10-09 18:43:12 +0000
committerJeff Johnston <jjohnstn@redhat.com>2009-10-09 18:43:12 +0000
commit2072888e66f0859bd7a0f77a5b24db4d3bdc6c34 (patch)
tree550a74139ff67fb929e6ce9fbb32a0c911c63f60
parent84552b989d53912aa8f9beb0123f226b458c2b3d (diff)
downloadcygnal-2072888e66f0859bd7a0f77a5b24db4d3bdc6c34.tar.gz
cygnal-2072888e66f0859bd7a0f77a5b24db4d3bdc6c34.tar.bz2
cygnal-2072888e66f0859bd7a0f77a5b24db4d3bdc6c34.zip
2009-10-09 Dave Korn <dave.korn@artimi.com>
* libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when defining struct timeval.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/sys/time.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index b57e356a8..4831204ee 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2009-10-09 Dave Korn <dave.korn@artimi.com>
+
+ * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when
+ defining struct timeval.
+
2009-10-09 Corinna Vinschen <corinna@vinschen.de>
* libc/locale/locale.c (DEFAULT_LOCALE): New define.
diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h
index 26346056a..d48839f6e 100644
--- a/newlib/libc/include/sys/time.h
+++ b/newlib/libc/include/sys/time.h
@@ -13,6 +13,7 @@ extern "C" {
#endif
#ifndef _WINSOCK_H
+#define _TIMEVAL_DEFINED
struct timeval {
time_t tv_sec;
suseconds_t tv_usec;