mirror of
https://github.com/bebbo/amiga-gcc.git
synced 2025-11-20 11:22:27 +00:00
refs https://github.com/bebbo/newlib-cygwin/issues/13: make timeval in devices/timer.h identical v2
This commit is contained in:
@ -1,8 +1,11 @@
|
||||
--- /old/Include/include_h/devices/timer.h 2020-03-15 21:42:33.285184100 +0100
|
||||
+++ /new/Include/include_h/devices/timer.h 2020-04-13 20:04:21.627065100 +0200
|
||||
@@ -30,11 +30,15 @@
|
||||
#ifndef _TIMEVAL_DEFINED
|
||||
#define _TIMEVAL_DEFINED
|
||||
--- old/devices/timer.h 2001-12-17 14:03:44.000000000 +0100
|
||||
+++ new/devices/timer.h 2020-04-13 20:28:34.518085400 +0200
|
||||
@@ -27,10 +27,19 @@
|
||||
|
||||
#define TIMERNAME "timer.device"
|
||||
|
||||
+#ifndef _TIMEVAL_DEFINED
|
||||
+#define _TIMEVAL_DEFINED
|
||||
struct timeval {
|
||||
- ULONG tv_secs;
|
||||
- ULONG tv_micro;
|
||||
@ -15,9 +18,7 @@
|
||||
+ suseconds_t tv_micro;
|
||||
+ };
|
||||
};
|
||||
-#define tv_sec tv_secs
|
||||
-#define tv_usec tv_micro
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
struct EClockVal {
|
||||
|
||||
ULONG ev_hi;
|
||||
|
||||
Reference in New Issue
Block a user