From e1461b00682b75526fb48f08b935b7ace4be7aa1 Mon Sep 17 00:00:00 2001 From: tromey Date: Tue, 14 May 2002 05:29:30 +0000 Subject: * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53443 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/lang/natRuntime.cc | 11 ----------- libjava/java/util/natTimeZone.cc | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 11 deletions(-) (limited to 'libjava/java') 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 -- cgit v1.2.3