aboutsummaryrefslogtreecommitdiff
path: root/srcds-pkgs/bad/cmake-ancient/libuv-application-services.patch
diff options
context:
space:
mode:
authoryuuko <yuuko@partyvan.io>2026-01-03 17:50:09 -0800
committeryuuko <yuuko@partyvan.io>2026-01-03 17:54:47 -0800
commite7e0ce7d474a1dca211e9f8d3d631d9cb29592fb (patch)
tree03aad02d050ef0f7644270de41c9cc09a79f2453 /srcds-pkgs/bad/cmake-ancient/libuv-application-services.patch
parent72b50588f98aa7692f87e238c39f48ca08f46ea6 (diff)
mysql 5.5: just give it an ancient cmake. why not. yeah.HEADmaster
Diffstat (limited to 'srcds-pkgs/bad/cmake-ancient/libuv-application-services.patch')
-rw-r--r--srcds-pkgs/bad/cmake-ancient/libuv-application-services.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/srcds-pkgs/bad/cmake-ancient/libuv-application-services.patch b/srcds-pkgs/bad/cmake-ancient/libuv-application-services.patch
new file mode 100644
index 0000000..eb3df1e
--- /dev/null
+++ b/srcds-pkgs/bad/cmake-ancient/libuv-application-services.patch
@@ -0,0 +1,53 @@
+diff -ur cmake-3.12.1/Utilities/cmlibuv/CMakeLists.txt cmake-3.12.1-patched/Utilities/cmlibuv/CMakeLists.txt
+--- cmake-3.12.1/Utilities/cmlibuv/CMakeLists.txt 2018-08-09 21:14:08.000000000 +0900
++++ cmake-3.12.1-patched/Utilities/cmlibuv/CMakeLists.txt 2018-08-13 10:14:53.000000000 +0900
+@@ -173,6 +173,22 @@
+ src/unix/kqueue.c
+ src/unix/proctitle.c
+ )
++
++ include(CheckIncludeFile)
++
++ check_include_file("ApplicationServices/ApplicationServices.h" HAVE_ApplicationServices)
++ if (HAVE_ApplicationServices)
++ list(APPEND uv_defines
++ HAVE_APPLICATIONSERVICES_APPLICATIONSERVICES_H=1
++ )
++ endif()
++
++ check_include_file("CoreServices/CoreServices.h" HAVE_CoreServices)
++ if (HAVE_CoreServices)
++ list(APPEND uv_defines
++ HAVE_CORESERVICES_CORESERVICES_H=1
++ )
++ endif()
+ endif()
+
+ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
+diff -ur cmake-3.12.1/Utilities/cmlibuv/src/unix/fsevents.c cmake-3.12.1-patched/Utilities/cmlibuv/src/unix/fsevents.c
+--- cmake-3.12.1/Utilities/cmlibuv/src/unix/fsevents.c 2018-08-09 21:14:08.000000000 +0900
++++ cmake-3.12.1-patched/Utilities/cmlibuv/src/unix/fsevents.c 2018-08-13 10:01:29.000000000 +0900
+@@ -21,7 +21,7 @@
+ #include "uv.h"
+ #include "internal.h"
+
+-#if TARGET_OS_IPHONE || MAC_OS_X_VERSION_MAX_ALLOWED < 1070
++#if !HAVE_CORESERVICES_CORESERVICES_H || MAC_OS_X_VERSION_MAX_ALLOWED < 1070
+
+ /* iOS (currently) doesn't provide the FSEvents-API (nor CoreServices) */
+
+@@ -38,7 +38,7 @@
+ void uv__fsevents_loop_delete(uv_loop_t* loop) {
+ }
+
+-#else /* TARGET_OS_IPHONE */
++#else /* !HAVE_CORESERVICES_CORESERVICES_H */
+
+ #include <dlfcn.h>
+ #include <assert.h>
+@@ -916,4 +916,4 @@
+ return 0;
+ }
+
+-#endif /* TARGET_OS_IPHONE */
++#endif /* !HAVE_CORESERVICES_CORESERVICES_H */