From 97d1536d17aa72a3ff26d6dff8c451ce50be2665 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 18 Mar 2016 14:10:43 -0500 Subject: [PATCH] sparc64: move struct timeval to commit bb0159489785d577ad0b8061a1ba7956ee0f89d0 moved the struct timeval declaration from to , and commit 01885f533de81ff73e9da1519a4b5f2316b49f86 changed to include . Therefore, sparc64's own struct timeval needs to be moved accordingly in order to avoid a conflict from the generic type. Signed-off-by: Yaakov Selkowitz Acked-by: Corinna Vinschen --- newlib/libc/sys/sparc64/sys/{time.h => _timeval.h} | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) rename newlib/libc/sys/sparc64/sys/{time.h => _timeval.h} (69%) diff --git a/newlib/libc/sys/sparc64/sys/time.h b/newlib/libc/sys/sparc64/sys/_timeval.h similarity index 69% rename from newlib/libc/sys/sparc64/sys/time.h rename to newlib/libc/sys/sparc64/sys/_timeval.h index 853dcf1ad..84ee717bb 100644 --- a/newlib/libc/sys/sparc64/sys/time.h +++ b/newlib/libc/sys/sparc64/sys/_timeval.h @@ -1,7 +1,12 @@ #ifndef _SYS_TIME_H #define _SYS_TIME_H -#include /* for time_t */ +#include + +#ifndef __time_t_defined +typedef _TIME_T_ time_t; +#define __time_t_defined +#endif #ifdef __cplusplus extern "C" {