-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc5c495
commit f8cb8e5
Showing
3 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- a/mysys/kqueue_timers.c 2023-10-11 19:42:50.000000000 +0800 | ||
+++ b/mysys/kqueue_timers.c 2024-09-02 16:18:37.000000000 +0800 | ||
@@ -150,7 +150,11 @@ | ||
{ | ||
struct kevent kev; | ||
|
||
+#if defined(NOTE_TRIGGER) | ||
EV_SET(&kev, 0, EVFILT_USER, 0, NOTE_TRIGGER, 0, 0); | ||
+#elif defined(EV_TRIGGER) | ||
+ EV_SET(&kev, 0, EVFILT_USER, EV_TRIGGER, 0, 0, 0); | ||
+#endif | ||
|
||
if (kevent(kq_fd, &kev, 1, NULL, 0, NULL) < 0) | ||
my_message_local(ERROR_LEVEL, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- a/cmake/os/Darwin.cmake 2023-03-16 23:25:04.000000000 +0800 | ||
+++ b/cmake/os/Darwin.cmake 2023-05-18 10:00:33.000000000 +0800 | ||
@@ -47,5 +47,9 @@ | ||
|
||
# This is used for the version_compile_machine variable. | ||
IF(CMAKE_SIZEOF_VOID_P MATCHES 8) | ||
- SET(MYSQL_MACHINE_TYPE "x86_64") | ||
+ IF(CMAKE_OSX_ARCHITECTURES MATCHES "ppc64") | ||
+ SET(MYSQL_MACHINE_TYPE "ppc64") | ||
+ ELSE() | ||
+ SET(MYSQL_MACHINE_TYPE "x86_64") | ||
+ ENDIF() | ||
ENDIF() | ||
|
||
--- a/rapid/plugin/x/CMakeLists.txt 2023-05-18 09:26:35.000000000 +0800 | ||
+++ b/rapid/plugin/x/CMakeLists.txt 2023-05-18 12:13:03.000000000 +0800 | ||
@@ -135,6 +135,10 @@ | ||
SET(BOOST_LIB_SOURCES | ||
${BOOST_SOURCES_DIR}/libs/atomic/src/lockpool.cpp) | ||
ENDIF() | ||
+ IF(APPLE AND CMAKE_OSX_ARCHITECTURES MATCHES "ppc|ppc64") | ||
+ SET(BOOST_LIB_SOURCES | ||
+ ${BOOST_SOURCES_DIR}/libs/atomic/src/lockpool.cpp) | ||
+ ENDIF() | ||
IF (CMAKE_CXX_COMPILER_ID STREQUAL "SunPro") | ||
SET(BOOST_LIB_SOURCES | ||
${BOOST_SOURCES_DIR}/libs/atomic/src/lockpool.cpp) |