mirror of
https://github.com/bebbo/amiga-gcc.git
synced 2025-12-08 22:38:25 +00:00
refs #158: define timeval only if not defined
This commit is contained in:
@ -1,11 +1,18 @@
|
||||
--- /old/Include/include_h/devices/timer.h 2001-12-17 14:03:44.000000000 +0100
|
||||
+++ /new/Include/include_h/devices/timer.h 2018-05-07 09:55:38.850775200 +0200
|
||||
@@ -31,6 +31,8 @@
|
||||
--- /old/Include/include_h/devices/timer.h 2020-03-15 21:42:33.285184100 +0100
|
||||
+++ /new/Include/include_h/devices/timer.h 2020-03-15 21:43:10.704643200 +0100
|
||||
@@ -27,10 +27,15 @@
|
||||
|
||||
#define TIMERNAME "timer.device"
|
||||
|
||||
+#ifndef _TIMEVAL_DEFINED
|
||||
+#define _TIMEVAL_DEFINED
|
||||
struct timeval {
|
||||
ULONG tv_secs;
|
||||
ULONG tv_micro;
|
||||
};
|
||||
+#define tv_sec tv_secs
|
||||
+#define tv_usec tv_micro
|
||||
+#define tv_usec tv_micro
|
||||
+#endif
|
||||
|
||||
struct EClockVal {
|
||||
ULONG ev_hi;
|
||||
|
||||
Reference in New Issue
Block a user