diff options
| author | Elliott Hughes <enh@google.com> | 2014-06-19 14:49:30 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2014-06-19 14:49:30 -0700 |
| commit | d10db8261949e4d84b65f5c369153d0ca86ab22c (patch) | |
| tree | f3ec0b9a4e08a39492c86e49f17f1ba192b6182f /libc/tzcode | |
| parent | 29e3a0e312b7a76b91adfd77a399a390ffaed11d (diff) | |
| download | bionic-d10db8261949e4d84b65f5c369153d0ca86ab22c.zip bionic-d10db8261949e4d84b65f5c369153d0ca86ab22c.tar.gz bionic-d10db8261949e4d84b65f5c369153d0ca86ab22c.tar.bz2 | |
Build tzcode with hidden visibility.
Bug: 11156955
Change-Id: Ib98d837b56cbbdfd01687cb3054fe3103eec0da9
Diffstat (limited to 'libc/tzcode')
| -rw-r--r-- | libc/tzcode/localtime.c | 4 | ||||
| -rw-r--r-- | libc/tzcode/strftime.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libc/tzcode/localtime.c b/libc/tzcode/localtime.c index f0fd9e3..4dd7ab0 100644 --- a/libc/tzcode/localtime.c +++ b/libc/tzcode/localtime.c @@ -2293,7 +2293,7 @@ static int __bionic_tzload_cached(const char* name, struct state* const sp, cons } // Non-standard API: mktime(3) but with an explicit timezone parameter. -time_t mktime_tz(struct tm* const tmp, const char* tz) { +time_t __attribute__((visibility("default"))) mktime_tz(struct tm* const tmp, const char* tz) { struct state* st = malloc(sizeof(*st)); time_t return_value; @@ -2310,7 +2310,7 @@ time_t mktime_tz(struct tm* const tmp, const char* tz) { } // Non-standard API: localtime(3) but with an explicit timezone parameter. -void localtime_tz(const time_t* const timep, struct tm* tmp, const char* tz) { +void __attribute__((visibility("default"))) localtime_tz(const time_t* const timep, struct tm* tmp, const char* tz) { struct state* st = malloc(sizeof(*st)); if (st == NULL) diff --git a/libc/tzcode/strftime.c b/libc/tzcode/strftime.c index a926164..f996f48 100644 --- a/libc/tzcode/strftime.c +++ b/libc/tzcode/strftime.c @@ -144,7 +144,7 @@ const struct tm * const t; } size_t -strftime_tz(s, maxsize, format, t, locale) +__attribute__((visibility("default"))) strftime_tz(s, maxsize, format, t, locale) char * const s; const size_t maxsize; const char * const format; |
