make this build on FreeBSD

This commit is contained in:
Menche 2015-01-09 20:12:57 -08:00 committed by darkrose
parent cac7d8fd42
commit 5a6fa7a4c2
2 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,8 @@
#define __BIG_ENDIAN 1
#elif __MACH__
#include <machine/endian.h>
#elif __FreeBSD__
#include <machine/endian.h>
#else
#include <endian.h>
#endif

View File

@ -172,6 +172,7 @@ bool RecursiveDelete(std::string path)
#else // POSIX
#include <sys/time.h>
#include <unistd.h>
#include <sys/types.h>
#include <dirent.h>