aboutsummaryrefslogtreecommitdiff
path: root/dep/g3dlite/source/FileSystem.cpp
diff options
context:
space:
mode:
authorLloyd Dilley <ldilley@users.noreply.github.com>2022-10-01 11:17:46 -0400
committerGitHub <noreply@github.com>2022-10-01 17:17:46 +0200
commit2b8fc95fdec69ca5c057c2e63a1313d8165d44ea (patch)
tree5887ba32f683fd789a7627b95bfe4b497e79076c /dep/g3dlite/source/FileSystem.cpp
parenta51fef236ebf0f1c459683f1f9c16242969af7d4 (diff)
Core/Misc: Fix *BSD compile errors (#28287)
Diffstat (limited to 'dep/g3dlite/source/FileSystem.cpp')
-rw-r--r--dep/g3dlite/source/FileSystem.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/dep/g3dlite/source/FileSystem.cpp b/dep/g3dlite/source/FileSystem.cpp
index 06e6ff00a5e..0898af79534 100644
--- a/dep/g3dlite/source/FileSystem.cpp
+++ b/dep/g3dlite/source/FileSystem.cpp
@@ -35,6 +35,9 @@
# include <fnmatch.h>
# include <unistd.h>
# define _getcwd getcwd
+# if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+# define stat64 stat
+# endif
# define _stat stat
# define stricmp strcasecmp
# define strnicmp strncasecmp