diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2006-02-15 10:26:30 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2006-02-15 10:26:30 +0000 |
commit | 680e0f1ffd273ac462a6fb5cbf84d9d751d9f9cb (patch) | |
tree | bd2b3850598f3fbff684c2f3b1c8fe88ccdb462c /newlib | |
parent | 00bc9d7ff2e02911cbe77f3867468671c3a5039b (diff) | |
download | newlib-680e0f1ffd273ac462a6fb5cbf84d9d751d9f9cb.zip newlib-680e0f1ffd273ac462a6fb5cbf84d9d751d9f9cb.tar.gz newlib-680e0f1ffd273ac462a6fb5cbf84d9d751d9f9cb.tar.bz2 |
* libc/include/sys/time.h (struct timeval): Change member types
according to SUSv3.
* libc/include/sys/types.h (useconds_t): Change to unsigned
according to SUSv3.
(suseconds_t): Define type.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 8 | ||||
-rw-r--r-- | newlib/libc/include/sys/time.h | 4 | ||||
-rw-r--r-- | newlib/libc/include/sys/types.h | 3 |
3 files changed, 12 insertions, 3 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index eb81765..a4f60ac 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,11 @@ +2006-02-15 Corinna Vinschen <corinna@vinschen.de> + + * libc/include/sys/time.h (struct timeval): Change member types + according to SUSv3. + * libc/include/sys/types.h (useconds_t): Change to unsigned + according to SUSv3. + (suseconds_t): Define type. + 2006-02-13 Jeff Johnston <jjohnstn@redhat.com> David Carne <davidcarne@gmail.com> diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h index 346747a..df31649 100644 --- a/newlib/libc/include/sys/time.h +++ b/newlib/libc/include/sys/time.h @@ -14,8 +14,8 @@ extern "C" { #ifndef _WINSOCK_H struct timeval { - long tv_sec; - long tv_usec; + time_t tv_sec; + suseconds_t tv_usec; }; struct timezone { diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index d03de7b..bf08616 100644 --- a/newlib/libc/include/sys/types.h +++ b/newlib/libc/include/sys/types.h @@ -262,7 +262,8 @@ typedef _TIMER_T_ timer_t; #define __timer_t_defined #endif -typedef long useconds_t; +typedef unsigned long useconds_t; +typedef long suseconds_t; #include <sys/features.h> |