Allow compilation of v0.23.x on FreeBSD and variants (#1952)

This commit is contained in:
Pouya Eghbali 2019-11-07 00:11:44 +01:00 committed by Lovell Fuller
parent 69050ef1c8
commit 9baf38db44

View File

@ -38,6 +38,9 @@
#elif defined(__APPLE__) #elif defined(__APPLE__)
#define STAT64_STRUCT stat #define STAT64_STRUCT stat
#define STAT64_FUNCTION stat #define STAT64_FUNCTION stat
#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
#define STAT64_STRUCT stat
#define STAT64_FUNCTION stat
#else #else
#define STAT64_STRUCT stat64 #define STAT64_STRUCT stat64
#define STAT64_FUNCTION stat64 #define STAT64_FUNCTION stat64