pass env from main and check FreeBSD for endian include (fix #650)

This commit is contained in:
John
2023-01-06 10:51:21 +01:00
parent d6854ff877
commit be574f1f8c
2 changed files with 10 additions and 5 deletions
+5 -1
View File
@@ -31,7 +31,11 @@
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <endian.h>
#ifdef __FreeBSD__
#include <machine/endian.h>
#else
#include <endian.h>
#endif
#include <string>
#include <cstdio>
#include <ctime>