6b9575d076
getrandom() is only in GLibC >= 2.2.5, and CentOS 7 uses an older GCC version, so add CMake logic to fallback to /dev/urandom as the Expat entroy source.
50 lines
1.1 KiB
Plaintext
50 lines
1.1 KiB
Plaintext
|
|
#ifndef EXPAT_CONFIG_H
|
|
#define EXPAT_CONFIG_H
|
|
|
|
#cmakedefine HAVE_WINDOWS_H
|
|
|
|
#ifdef HAVE_WINDOWS_H
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <windows.h>
|
|
#undef WIN32_LEAN_AND_MEAN
|
|
#endif
|
|
|
|
#cmakedefine HAVE_GETRANDOM
|
|
#cmakedefine XML_DEV_URANDOM
|
|
|
|
// we can assume > 10.7 macOS so always set this
|
|
#ifdef __APPLE__
|
|
#define HAVE_ARC4RANDOM_BUF
|
|
#endif
|
|
|
|
/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
|
|
#define BYTEORDER 1234
|
|
|
|
/* Define to 1 if you have the `bcopy' function. */
|
|
#cmakedefine HAVE_BCOPY
|
|
|
|
/* Define to 1 if you have the `memmove' function. */
|
|
#define HAVE_MEMMOVE
|
|
|
|
/* Define to 1 if you have a working `mmap' system call. */
|
|
#cmakedefine HAVE_MMAP
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
#cmakedefine HAVE_UNISTD_H
|
|
|
|
/* whether byteorder is bigendian */
|
|
#undef WORDS_BIGENDIAN
|
|
|
|
/* Define to specify how much context to retain around the current parse
|
|
point. */
|
|
#define XML_CONTEXT_BYTES 1024
|
|
|
|
/* Define to make parameter entity parsing functionality available. */
|
|
#define XML_DTD
|
|
|
|
/* Define to make XML Namespaces functionality available. */
|
|
#define XML_NS
|
|
|
|
#endif /* ifndef EXPAT_CONFIG_H */
|