]> sourceware.org Git - newlib-cygwin.git/commitdiff
sparc64: move struct timeval to <sys/_timeval.h>
authorYaakov Selkowitz <yselkowi@redhat.com>
Fri, 18 Mar 2016 19:10:43 +0000 (14:10 -0500)
committerYaakov Selkowitz <yselkowi@redhat.com>
Fri, 18 Mar 2016 20:29:13 +0000 (15:29 -0500)
commit bb0159489785d577ad0b8061a1ba7956ee0f89d0 moved the struct timeval
declaration from <sys/time.h> to <sys/_timeval.h>, and commit
01885f533de81ff73e9da1519a4b5f2316b49f86 changed <sys/select.h> to include
<sys/_timeval.h>.  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 <yselkowi@redhat.com>
Acked-by: Corinna Vinschen <vinschen@redhat.com>
newlib/libc/sys/sparc64/sys/_timeval.h [moved from newlib/libc/sys/sparc64/sys/time.h with 69% similarity]

similarity index 69%
rename from newlib/libc/sys/sparc64/sys/time.h
rename to newlib/libc/sys/sparc64/sys/_timeval.h
index 853dcf1ad6ca93f718a630de1bdedc83f17f0be6..84ee717bbc80860ee58b7f8eeffd351ec4d64447 100644 (file)
@@ -1,7 +1,12 @@
 #ifndef _SYS_TIME_H
 #define _SYS_TIME_H
 
-#include <sys/types.h> /* for time_t */
+#include <machine/types.h>
+
+#ifndef __time_t_defined
+typedef _TIME_T_        time_t;
+#define __time_t_defined
+#endif
 
 #ifdef __cplusplus
 extern "C" {
This page took 0.028941 seconds and 5 git commands to generate.