Make building clean on linux, use config.h

pull/88/head
Dave Vasilevsky 4 years ago
parent 49acde1e50
commit 29e57ec102

@ -71,13 +71,20 @@ AC_FUNC_STRTOD
AC_CHECK_FUNCS([memchr memmove memset strerror strtol])
AC_CHECK_HEADER([sys/endian.h],
[
AC_CHECK_DECLS([htole64, le64toh], [], [], [#define _GNU_SOURCE 1 #include <sys/endian.h>])
AC_CHECK_DECLS([htole64, le64toh], [], [], [
#define _GNU_SOURCE 1
#include <sys/endian.h>
]
)
],
[], [])
AC_CHECK_HEADER([endian.h],
[
AC_CHECK_DECLS([htole64, le64toh], [], [], [#define _GNU_SOURCE 1 #include <endian.h>])
AC_CHECK_DECLS([htole64, le64toh], [], [], [
#define _GNU_SOURCE 1
#include <endian.h>
])
],
[], [])

@ -12,6 +12,7 @@ void xle64enc(uint8_t *d, uint64_t n) {
#elif defined(__linux__) || defined(__FreeBSD__)
#include "config.h"
#include <stdint.h>
#include <string.h>
#ifdef __linux__

Loading…
Cancel
Save