diff options
author | Colin Cross <ccross@android.com> | 2021-07-29 21:59:49 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-07-29 21:59:49 +0000 |
commit | e90d78995e537917f3eaca5479a2efff2893d6b0 (patch) | |
tree | 3be09f74c282b208781735eda78eff8e944faf6c | |
parent | a22fe6656018e07762345de223f58a2a8b524ad4 (diff) | |
parent | 7e37b457ae08d4a3f576bd830e3b3323b8d3c145 (diff) | |
download | cpython2-e90d78995e537917f3eaca5479a2efff2893d6b0.tar.gz |
Support compiling python2 against musl am: 66addf4ff3 am: 965ad62600 am: d9205f3aa7 am: 7e37b457ae
Original change: https://android-review.googlesource.com/c/platform/external/python/cpython2/+/1776890
Change-Id: Ia1833daf0bc3036f32d44ce1740ea82671fd6670
-rw-r--r-- | linux_x86_64/pyconfig/pyconfig.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux_x86_64/pyconfig/pyconfig.h b/linux_x86_64/pyconfig/pyconfig.h index 210484d07f..e6c363db6d 100644 --- a/linux_x86_64/pyconfig/pyconfig.h +++ b/linux_x86_64/pyconfig/pyconfig.h @@ -858,7 +858,10 @@ #define HAVE_TMPNAM 1 /* Define to 1 if you have the `tmpnam_r' function. */ +#ifdef __GLIBC__ +// musl does not have tmpnam_r #define HAVE_TMPNAM_R 1 +#endif /* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use `HAVE_STRUCT_TM_TM_ZONE' instead. */ |