blob: 340889a5ef8e21567863e926b150f76f53939068 [file] [log] [blame]
Haibo Huangb16e0172018-07-02 14:40:07 -07001Index: expat/expat_config.h
2===================================================================
3--- expat.orig/expat_config.h
4+++ expat/expat_config.h
Haibo Huang40a71912019-10-11 11:13:39 -07005@@ -8,10 +8,14 @@
Haibo Huangb16e0172018-07-02 14:40:07 -07006 #define BYTEORDER 1234
7
8 /* Define to 1 if you have the `arc4random' function. */
9-/* #undef HAVE_ARC4RANDOM */
10+#if defined(__APPLE__) || defined(__BIONIC__)
11+#define HAVE_ARC4RANDOM 1
12+#endif
13
14 /* Define to 1 if you have the `arc4random_buf' function. */
15-/* #undef HAVE_ARC4RANDOM_BUF */
16+#if defined(__APPLE__) || defined(__BIONIC__)
17+#define HAVE_ARC4RANDOM_BUF 1
18+#endif
19
Haibo Huang40a71912019-10-11 11:13:39 -070020 /* Define to 1 if you have the <dlfcn.h> header file. */
21 #define HAVE_DLFCN_H 1
Haibo Huangb16e0172018-07-02 14:40:07 -070022@@ -23,7 +27,9 @@
23 #define HAVE_GETPAGESIZE 1
24
25 /* Define to 1 if you have the `getrandom' function. */
26+#if defined(__BIONIC__)
27 #define HAVE_GETRANDOM 1
28+#endif
29
30 /* Define to 1 if you have the <inttypes.h> header file. */
31 #define HAVE_INTTYPES_H 1
Haibo Huang40a71912019-10-11 11:13:39 -070032@@ -115,7 +121,9 @@
Haibo Huangb16e0172018-07-02 14:40:07 -070033 #define XML_CONTEXT_BYTES 1024
34
35 /* Define to include code reading entropy from `/dev/urandom'. */
36+#if defined(__GLIBC__)
37 #define XML_DEV_URANDOM 1
38+#endif
39
40 /* Define to make parameter entity parsing functionality available. */
41 #define XML_DTD 1