diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2021-04-22 15:05:40 +0300 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2022-02-25 22:12:28 +0300 |
commit | 33c9707d8b57fab77399b00747f04e3478770167 (patch) | |
tree | f7d28e4508e0a333e84901580f637972a8e774b8 /games/spring/files/patch-rts_System_Platform_Misc.cpp | |
parent | databases/postgis32: Update to 3.2 (diff) |
games/spring: update to 105.0.1
PR: 254732
Diffstat (limited to 'games/spring/files/patch-rts_System_Platform_Misc.cpp')
-rw-r--r-- | games/spring/files/patch-rts_System_Platform_Misc.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/games/spring/files/patch-rts_System_Platform_Misc.cpp b/games/spring/files/patch-rts_System_Platform_Misc.cpp new file mode 100644 index 000000000000..79e4df8e1c33 --- /dev/null +++ b/games/spring/files/patch-rts_System_Platform_Misc.cpp @@ -0,0 +1,21 @@ +--- rts/System/Platform/Misc.cpp.orig 2021-01-01 16:12:22 UTC ++++ rts/System/Platform/Misc.cpp +@@ -29,7 +29,9 @@ + #include <mach-o/dyld.h> + + #elif defined( __FreeBSD__) ++ #include <sys/types.h> + #include <sys/sysctl.h> ++ #include <ifaddrs.h> + + #else + +@@ -714,7 +716,7 @@ namespace Platform + return (GetMacType(macAddr, 0), macAddr); + } + +- #elif defined(__APPLE__) ++ #elif defined(__APPLE__) || defined (__FreeBSD__) + + std::array<uint8_t, 6> GetRawMacAddr() { + // TODO: http://lists.freebsd.org/pipermail/freebsd-hackers/2004-June/007415.html |