mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Dep: Fix build on m1 mac
This commit is contained in:
@@ -10,12 +10,12 @@
|
||||
|
||||
file(GLOB_RECURSE sources *.c)
|
||||
|
||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
|
||||
list(REMOVE_ITEM sources
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/argon2/opt.c)
|
||||
else()
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "i686|amd64|x86_64|AMD64")
|
||||
list(REMOVE_ITEM sources
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/argon2/ref.c)
|
||||
else()
|
||||
list(REMOVE_ITEM sources
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/argon2/opt.c)
|
||||
endif()
|
||||
|
||||
add_library(argon2 STATIC
|
||||
|
||||
13
dep/g3dlite/G3D-v9.0 hotfix17.diff
Normal file
13
dep/g3dlite/G3D-v9.0 hotfix17.diff
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/dep/g3dlite/source/FileSystem.cpp b/dep/g3dlite/source/FileSystem.cpp
|
||||
index 0898af7953..ff5da02344 100644
|
||||
--- a/dep/g3dlite/source/FileSystem.cpp
|
||||
+++ b/dep/g3dlite/source/FileSystem.cpp
|
||||
@@ -35,7 +35,7 @@
|
||||
# include <fnmatch.h>
|
||||
# include <unistd.h>
|
||||
# define _getcwd getcwd
|
||||
-# if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
+# if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
|
||||
# define stat64 stat
|
||||
# endif
|
||||
# define _stat stat
|
||||
@@ -35,7 +35,7 @@
|
||||
# include <fnmatch.h>
|
||||
# include <unistd.h>
|
||||
# define _getcwd getcwd
|
||||
# if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
# if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
|
||||
# define stat64 stat
|
||||
# endif
|
||||
# define _stat stat
|
||||
|
||||
Reference in New Issue
Block a user