Skip to content

Commit

Permalink
TimeZone_md move platform stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
MBaesken committed Sep 3, 2024
1 parent 082e6f6 commit e20948c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/java.base/unix/native/libjava/TimeZone_md.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,8 @@ static const char *DEFAULT_ZONEINFO_FILE = "/usr/share/lib/zoneinfo/localtime";

static const char popularZones[][4] = {"UTC", "GMT"};

#if defined(_AIX)
static const char *ETC_ENVIRONMENT_FILE = "/etc/environment";
#else
static char *isFileIdentical(char* buf, size_t size, char *pathname);
#endif

#if defined(__linux__) || defined(MACOSX)
static char *isFileIdentical(char* buf, size_t size, char *pathname);

/*
* remove repeated path separators ('/') in the given 'path'.
Expand Down Expand Up @@ -356,6 +351,7 @@ getPlatformTimeZoneID()
}

#elif defined(_AIX)
static const char *ETC_ENVIRONMENT_FILE = "/etc/environment";

static char *
getPlatformTimeZoneID()
Expand Down

0 comments on commit e20948c

Please sign in to comment.