aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2021-07-29 20:37:37 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-07-29 20:37:37 +0000
commit965ad62600f69230e546a846414be6de9d8471df (patch)
tree3be09f74c282b208781735eda78eff8e944faf6c
parent7f55bcf5653b501996ac87fcdbd4bc9093f0391c (diff)
parent66addf4ff3d09575eae8d0993a02cc9dd752602d (diff)
downloadcpython2-965ad62600f69230e546a846414be6de9d8471df.tar.gz
Support compiling python2 against musl am: 66addf4ff3
Original change: https://android-review.googlesource.com/c/platform/external/python/cpython2/+/1776890 Change-Id: I6c0798ecab9e51dc9b2d04bc2a13a6dce05a4416
-rw-r--r--linux_x86_64/pyconfig/pyconfig.h3
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. */