summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-08-10 17:33:34 -0700
committerElliott Hughes <enh@google.com>2021-08-12 16:24:12 -0700
commit33bf9751da479e7b5a99f413426ab90f5b704453 (patch)
treefcdf2ba6814f8d5611f8b2d204b3bc9b20d145ec /patches
parent667f64dc71313399b79837222985a92ade9c1c2a (diff)
downloadexpat-33bf9751da479e7b5a99f413426ab90f5b704453.tar.gz
Upgrade expat to R_2_4_1
Test: make Change-Id: I4a5decaf80b7aa290b5539c67c93c5f44720cd04
Diffstat (limited to 'patches')
-rw-r--r--patches/config.diff13
1 files changed, 12 insertions, 1 deletions
diff --git a/patches/config.diff b/patches/config.diff
index 340889a5..dfe93f94 100644
--- a/patches/config.diff
+++ b/patches/config.diff
@@ -23,12 +23,23 @@ Index: expat/expat_config.h
#define HAVE_GETPAGESIZE 1
/* Define to 1 if you have the `getrandom' function. */
-+#if defined(__BIONIC__)
++#if defined(__BIONIC__) || defined(MUSL)
#define HAVE_GETRANDOM 1
+#endif
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
+@@ -56,7 +56,9 @@
+ #define HAVE_STRING_H 1
+
+ /* Define to 1 if you have `syscall' and `SYS_getrandom'. */
++#if 0 /* We only get here for glibc and Windows (where the better choices aren'
+t available) and they don't have this fallback either. */
+ #define HAVE_SYSCALL_GETRANDOM 1
++#endif
+
+ /* Define to 1 if you have the <sys/param.h> header file. */
+ #define HAVE_SYS_PARAM_H 1
@@ -115,7 +121,9 @@
#define XML_CONTEXT_BYTES 1024