-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #261 - myfreeweb:master, r=alexcrichton
64-bit Android timegm fix On aarch64 and x86_64, `timegm64` does not exist (see [time64.h](https://android.googlesource.com/platform/development/+/797351fd3bbb8fe517afafdd5095fd740387e7a4/ndk/platforms/android-L/include/time64.h)). See time-rs/time#118 for usage. Since that patch, the time library switched to using libc for `timegm` (time-rs/time@51c0019), and it doesn't build on 64-bit Android. This PR fixes that.
- Loading branch information
Showing
3 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,7 @@ s! { | |
} | ||
|
||
pub const SYS_gettid: ::c_long = 224; | ||
|
||
extern { | ||
pub fn timegm64(tm: *const ::tm) -> ::time64_t; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,7 @@ s! { | |
} | ||
|
||
pub const SYS_gettid: ::c_long = 178; | ||
|
||
extern { | ||
pub fn timegm(tm: *const ::tm) -> ::time64_t; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters