From e86c533b0177a8dd45c166b09db7b92e9c1e2515 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 14 May 2002 05:29:30 +0000 Subject: [PATCH] natRuntime.cc: Don't include sys/time.h and time.h. * java/lang/natRuntime.cc: Don't include sys/time.h and time.h. * java/util/natTimeZone.cc: Include sys/time.h and time.h here. Include platform.h. From-SVN: r53443 --- libjava/ChangeLog | 4 ++++ libjava/java/lang/natRuntime.cc | 11 ----------- libjava/java/util/natTimeZone.cc | 15 +++++++++++++++ 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 25233a17b54..bbdd782beb5 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,9 @@ 2002-05-13 Tom Tromey + * java/lang/natRuntime.cc: Don't include sys/time.h and time.h. + * java/util/natTimeZone.cc: Include sys/time.h and time.h here. + Include platform.h. + Fixes PR libgcj/6389: * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Added natTimeZone.cc. diff --git a/libjava/java/lang/natRuntime.cc b/libjava/java/lang/natRuntime.cc index 0783d5b7419..7511df49a0f 100644 --- a/libjava/java/lang/natRuntime.cc +++ b/libjava/java/lang/natRuntime.cc @@ -48,17 +48,6 @@ details. */ #include #endif -#if TIME_WITH_SYS_TIME -# include -# include -#else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif -#endif - #ifdef USE_LTDL diff --git a/libjava/java/util/natTimeZone.cc b/libjava/java/util/natTimeZone.cc index 007f689209f..7743c612546 100644 --- a/libjava/java/util/natTimeZone.cc +++ b/libjava/java/util/natTimeZone.cc @@ -13,10 +13,25 @@ details. */ #include #include +#include "platform.h" + #include #include #include +#if TIME_WITH_SYS_TIME +# include +# include +#else +# if HAVE_SYS_TIME_H +# include +# else +# include +# endif +#endif + +#include + /* * This method returns a time zone string that is used by init_properties * to set the default timezone property 'user.timezone'. That value is