diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-14 05:29:30 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-14 05:29:30 +0000 |
commit | e1461b00682b75526fb48f08b935b7ace4be7aa1 (patch) | |
tree | 7c2675ea3d84ee24d0c23495cc9a91e9debbf1f5 /libjava/java/util/natTimeZone.cc | |
parent | 638987bd9ae31ce99637cbc536d6337c1629aedb (diff) | |
download | ppe42-gcc-e1461b00682b75526fb48f08b935b7ace4be7aa1.tar.gz ppe42-gcc-e1461b00682b75526fb48f08b935b7ace4be7aa1.zip |
* 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
Diffstat (limited to 'libjava/java/util/natTimeZone.cc')
-rw-r--r-- | libjava/java/util/natTimeZone.cc | 15 |
1 files changed, 15 insertions, 0 deletions
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 <gcj/cni.h> #include <jvm.h> +#include "platform.h" + #include <java/util/TimeZone.h> #include <java/lang/Character.h> #include <java/lang/Integer.h> +#if TIME_WITH_SYS_TIME +# include <sys/time.h> +# include <time.h> +#else +# if HAVE_SYS_TIME_H +# include <sys/time.h> +# else +# include <time.h> +# endif +#endif + +#include <string.h> + /* * This method returns a time zone string that is used by init_properties * to set the default timezone property 'user.timezone'. That value is |