From 2bb7faf70dcb34ece8ddd0332ad27f777de9b6a8 Mon Sep 17 00:00:00 2001 From: bebbo Date: Mon, 13 Apr 2020 20:33:11 +0200 Subject: [PATCH] refs https://github.com/bebbo/newlib-cygwin/issues/13: make timeval in devices/timer.h identical v2 --- .../Include/include_h/devices/timer.h.diff | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/patches/NDK_3.9/Include/include_h/devices/timer.h.diff b/patches/NDK_3.9/Include/include_h/devices/timer.h.diff index edca943..62af301 100644 --- a/patches/NDK_3.9/Include/include_h/devices/timer.h.diff +++ b/patches/NDK_3.9/Include/include_h/devices/timer.h.diff @@ -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;