diff options
author | Tom Tromey <tromey@redhat.com> | 2002-05-14 05:29:30 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-05-14 05:29:30 +0000 |
commit | e86c533b0177a8dd45c166b09db7b92e9c1e2515 (patch) | |
tree | 7c2675ea3d84ee24d0c23495cc9a91e9debbf1f5 /libjava/java/util/natTimeZone.cc | |
parent | fe4b3c7996410a60bd1b9164eae31bc3946deded (diff) | |
download | gcc-e86c533b0177a8dd45c166b09db7b92e9c1e2515.zip gcc-e86c533b0177a8dd45c166b09db7b92e9c1e2515.tar.gz gcc-e86c533b0177a8dd45c166b09db7b92e9c1e2515.tar.bz2 |
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
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 007f689..7743c612 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 |