OLD | NEW |
1 diff --git a/fileio.c b/fileio.c | 1 diff --git a/fileio.c b/fileio.c |
2 index ba0a1d0..1377c2a 100644 | 2 index ba0a1d0..1377c2a 100644 |
3 --- a/fileio.c | 3 --- a/fileio.c |
4 +++ b/fileio.c | 4 +++ b/fileio.c |
5 @@ -1822,8 +1822,15 @@ time_t dos_to_unix_time(dosdatetime) | 5 @@ -1822,8 +1822,15 @@ time_t dos_to_unix_time(dosdatetime) |
6 /* tzset was already called at start of process_zipfiles() */ | 6 /* tzset was already called at start of process_zipfiles() */ |
7 /* tzset(); */ /* set `timezone' variable */ | 7 /* tzset(); */ /* set `timezone' variable */ |
8 #ifndef __BEOS__ /* BeOS DR8 has no timezones... */ | 8 #ifndef __BEOS__ /* BeOS DR8 has no timezones... */ |
9 + /* TODO(hamaji): remove once this gets fixed: | 9 + /* TODO(hamaji): remove once this gets fixed: |
10 + * https://code.google.com/p/nativeclient/issues/detail?id=3737 | 10 + * https://code.google.com/p/nativeclient/issues/detail?id=3737 |
11 + */ | 11 + */ |
12 +#if defined(__native_client__) && !defined(__GLIBC__) | 12 +#if defined(__native_client__) && defined(_NEWLIB_VERSION) |
13 + m_time += _timezone; /* seconds WEST of GMT: add */ | 13 + m_time += _timezone; /* seconds WEST of GMT: add */ |
14 +#else | 14 +#else |
15 m_time += timezone; /* seconds WEST of GMT: add */ | 15 m_time += timezone; /* seconds WEST of GMT: add */ |
16 #endif | 16 #endif |
17 +#endif | 17 +#endif |
18 #endif /* ?(BSD || MTS || __GO32__) */ | 18 #endif /* ?(BSD || MTS || __GO32__) */ |
19 #endif /* ?WIN32 */ | 19 #endif /* ?WIN32 */ |
20 TTrace((stderr, " m_time after timezone = %lu\n", (ulg)m_time)); | 20 TTrace((stderr, " m_time after timezone = %lu\n", (ulg)m_time)); |
21 diff --git a/process.c b/process.c | 21 diff --git a/process.c b/process.c |
22 index 1e9a1e1..f2fcb8b 100644 | 22 index 1e9a1e1..f2fcb8b 100644 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 +++ b/unix/unxcfg.h | 62 +++ b/unix/unxcfg.h |
63 @@ -200,7 +200,7 @@ typedef struct stat z_stat; | 63 @@ -200,7 +200,7 @@ typedef struct stat z_stat; |
64 #if (!defined(NO_LCHOWN) || !defined(NO_LCHMOD)) | 64 #if (!defined(NO_LCHOWN) || !defined(NO_LCHMOD)) |
65 # define SET_SYMLINK_ATTRIBS | 65 # define SET_SYMLINK_ATTRIBS |
66 #endif | 66 #endif |
67 -#ifdef MTS | 67 -#ifdef MTS |
68 +#if defined(MTS) || defined(__native_client__) | 68 +#if defined(MTS) || defined(__native_client__) |
69 # ifdef SET_DIR_ATTRIB | 69 # ifdef SET_DIR_ATTRIB |
70 # undef SET_DIR_ATTRIB | 70 # undef SET_DIR_ATTRIB |
71 # endif | 71 # endif |
OLD | NEW |