Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-03-18 22:10:43 +0300
committerYaakov Selkowitz <yselkowi@redhat.com>2016-03-18 23:29:13 +0300
commit97d1536d17aa72a3ff26d6dff8c451ce50be2665 (patch)
tree9f7f395ea99c91849926db90bcfbbf1b86843b05
parentf049607eb01e2ca1cb949f6ffa0ee5665e41fc22 (diff)
sparc64: move struct timeval to <sys/_timeval.h>
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>
-rw-r--r--newlib/libc/sys/sparc64/sys/_timeval.h (renamed from newlib/libc/sys/sparc64/sys/time.h)7
1 files changed, 6 insertions, 1 deletions
diff --git a/newlib/libc/sys/sparc64/sys/time.h b/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 <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" {