Haibo Huang | b16e017 | 2018-07-02 14:40:07 -0700 | [diff] [blame] | 1 | Index: expat/expat_config.h |
| 2 | =================================================================== |
| 3 | --- expat.orig/expat_config.h |
| 4 | +++ expat/expat_config.h |
Haibo Huang | 40a7191 | 2019-10-11 11:13:39 -0700 | [diff] [blame] | 5 | @@ -8,10 +8,14 @@ |
Haibo Huang | b16e017 | 2018-07-02 14:40:07 -0700 | [diff] [blame] | 6 | #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 Huang | 40a7191 | 2019-10-11 11:13:39 -0700 | [diff] [blame] | 20 | /* Define to 1 if you have the <dlfcn.h> header file. */ |
| 21 | #define HAVE_DLFCN_H 1 |
Haibo Huang | b16e017 | 2018-07-02 14:40:07 -0700 | [diff] [blame] | 22 | @@ -23,7 +27,9 @@ |
| 23 | #define HAVE_GETPAGESIZE 1 |
| 24 | |
| 25 | /* Define to 1 if you have the `getrandom' function. */ |
Colin Cross | 2cd0490 | 2021-08-16 15:53:15 -0700 | [diff] [blame] | 26 | +#if defined(__BIONIC__) || defined(ANDROID_HOST_MUSL) |
Haibo Huang | b16e017 | 2018-07-02 14:40:07 -0700 | [diff] [blame] | 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 |
Elliott Hughes | 33bf975 | 2021-08-10 17:33:34 -0700 | [diff] [blame] | 32 | @@ -56,7 +56,9 @@ |
| 33 | #define HAVE_STRING_H 1 |
| 34 | |
| 35 | /* Define to 1 if you have `syscall' and `SYS_getrandom'. */ |
Elliott Hughes | f17eaa3 | 2022-02-23 15:25:42 -0800 | [diff] [blame] | 36 | +#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. */ |
Elliott Hughes | 33bf975 | 2021-08-10 17:33:34 -0700 | [diff] [blame] | 37 | #define HAVE_SYSCALL_GETRANDOM 1 |
| 38 | +#endif |
| 39 | |
| 40 | /* Define to 1 if you have the <sys/param.h> header file. */ |
| 41 | #define HAVE_SYS_PARAM_H 1 |
Haibo Huang | 40a7191 | 2019-10-11 11:13:39 -0700 | [diff] [blame] | 42 | @@ -115,7 +121,9 @@ |
Haibo Huang | b16e017 | 2018-07-02 14:40:07 -0700 | [diff] [blame] | 43 | #define XML_CONTEXT_BYTES 1024 |
| 44 | |
| 45 | /* Define to include code reading entropy from `/dev/urandom'. */ |
| 46 | +#if defined(__GLIBC__) |
| 47 | #define XML_DEV_URANDOM 1 |
| 48 | +#endif |
| 49 | |
| 50 | /* Define to make parameter entity parsing functionality available. */ |
| 51 | #define XML_DTD 1 |