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
committerShauren <shauren.trinity@gmail.com>2022-10-01 17:33:25 +0200
commit1c36441b7c50f07569ea4f37754816c702218410 (patch)
treeda73ab86caa63e992be63b7daa93cddc7c6e4d1e /dep/g3dlite/source/FileSystem.cpp
parenta489ea6dd6b97f96256b51c9fdf8d6ae19cfc70c (diff)
Core/Misc: Fix *BSD compile errors (#28287)
(cherry picked from commit 2b8fc95fdec69ca5c057c2e63a1313d8165d44ea)
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