From 97d1536d17aa72a3ff26d6dff8c451ce50be2665 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 18 Mar 2016 14:10:43 -0500 Subject: 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/_timeval.h | 29 +++++++++++++++++++++++++++++ newlib/libc/sys/sparc64/sys/time.h | 24 ------------------------ 2 files changed, 29 insertions(+), 24 deletions(-) create mode 100644 newlib/libc/sys/sparc64/sys/_timeval.h delete mode 100644 newlib/libc/sys/sparc64/sys/time.h (limited to 'newlib') diff --git a/newlib/libc/sys/sparc64/sys/_timeval.h b/newlib/libc/sys/sparc64/sys/_timeval.h new file mode 100644 index 000000000..84ee717bb --- /dev/null +++ b/newlib/libc/sys/sparc64/sys/_timeval.h @@ -0,0 +1,29 @@ +#ifndef _SYS_TIME_H +#define _SYS_TIME_H + +#include + +#ifndef __time_t_defined +typedef _TIME_T_ time_t; +#define __time_t_defined +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +struct timeval { + long tv_sec; + long tv_usec; +}; + +typedef struct timestruc { + time_t tv_sec; + long tv_nsec; +} timestruc_t; + +#ifdef __cplusplus +} +#endif + +#endif /* _SYS_TIME_H */ diff --git a/newlib/libc/sys/sparc64/sys/time.h b/newlib/libc/sys/sparc64/sys/time.h deleted file mode 100644 index 853dcf1ad..000000000 --- a/newlib/libc/sys/sparc64/sys/time.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef _SYS_TIME_H -#define _SYS_TIME_H - -#include /* for time_t */ - -#ifdef __cplusplus -extern "C" { -#endif - -struct timeval { - long tv_sec; - long tv_usec; -}; - -typedef struct timestruc { - time_t tv_sec; - long tv_nsec; -} timestruc_t; - -#ifdef __cplusplus -} -#endif - -#endif /* _SYS_TIME_H */ -- cgit v1.2.3