Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Use timelocal instead of mktime in timelocal64 in OpenBSD #1906

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+4 −0
Split
View
@@ -338,7 +338,11 @@ time64_t mktime64(struct tm64* tm64) {
}
time64_t timelocal64(struct tm64* tm64) {
+#ifdef __OpenBSD__
+ return timestamp64(timelocal, tm64);
+#else
return timestamp64(mktime, tm64);
+#endif
}
time64_t timegm64(struct tm64* tm64) {