summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/sys/types.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index fa64dc06c..9251085fe 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2002-05-22 Corinna Vinschen <vinschen@redhat.com>
+
+ * libc/include/sys/types.h: Include cygwin/types.h always under
+ Cygwin, not only if _POSIX_THREADS is defined.
+
2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
* configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
index 2a12e4e34..56620e190 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -329,10 +329,11 @@ typedef struct {
int init_executed; /* has the initialization routine been run? */
} pthread_once_t; /* dynamic package initialization */
#else
+#endif /* defined(_POSIX_THREADS) */
+
#if defined (__CYGWIN__)
#include <cygwin/types.h>
#endif
-#endif /* defined(_POSIX_THREADS) */
#endif /* defined(__rtems__) */