Add support for use of the system timezone database, rather
than embedding a copy. Discussed upstream but was not desired.
History:
Add support for use of the system timezone database, rather
than embedding a copy. Discussed upstream but was not desired.
History:
r7: improve check for valid timezone id to exclude directories
r6: fix fd leak in r5, fix country code/BC flag use in
timezone_identifiers_list() using system db,
r7: improve check for valid timezone id to exclude directories
r6: fix fd leak in r5, fix country code/BC flag use in
timezone_identifiers_list() using system db,
#if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__))
# if defined(__LITTLE_ENDIAN__)
#if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__))
# if defined(__LITTLE_ENDIAN__)
+ char **map, size_t *maplen,
+ const timelib_tzdb *tzdb)
+{
+ char **map, size_t *maplen,
+ const timelib_tzdb *tzdb)
+{
+
+ /* Now done with the mmap segment - discard it. */
+ munmap(memmap, maplen);
+
+ /* Now done with the mmap segment - discard it. */
+ munmap(memmap, maplen);
+ /* PHP-style - use the embedded info. */
+ read_location(&tzf, tmp);
+ }
} else {
tmp = NULL;
}
+ /* PHP-style - use the embedded info. */
+ read_location(&tzf, tmp);
+ }
} else {
tmp = NULL;
}
@@ -78,3 +78,17 @@ stdlib.h
dnl Check for strtoll, atoll
@@ -78,3 +78,17 @@ stdlib.h
dnl Check for strtoll, atoll