summaryrefslogtreecommitdiff
path: root/databases/xtrabackup84/files/patch-file_utils
diff options
context:
space:
mode:
authorOleksii Samorukov <samm@FreeBSD.org>2024-09-04 18:08:39 +0200
committerOleksii Samorukov <samm@FreeBSD.org>2024-09-04 18:10:40 +0200
commit1f28cb4002a8698562b90c773b3c02d8d321ef9c (patch)
tree6940d557d51f930b3cff1c3be2b738f66c309c24 /databases/xtrabackup84/files/patch-file_utils
parentnet/hostapd-devel: Update to the latest GH commit (diff)
databases/xtrabackup84: new port to backup MySQL 8.4 database
Based on xtrabackup83 port, with corresponding changes, including: - usage of bundled boost - disable build on 32bit platforms (unsupported by vendor) - new patches from mysql-server84.
Diffstat (limited to 'databases/xtrabackup84/files/patch-file_utils')
-rw-r--r--databases/xtrabackup84/files/patch-file_utils20
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/xtrabackup84/files/patch-file_utils b/databases/xtrabackup84/files/patch-file_utils
new file mode 100644
index 000000000000..a23aa72136d4
--- /dev/null
+++ b/databases/xtrabackup84/files/patch-file_utils
@@ -0,0 +1,20 @@
+--- storage/innobase/xtrabackup/src/file_utils.cc.orig 2023-11-24 17:33:10.000000000 +0700
++++ storage/innobase/xtrabackup/src/file_utils.cc 2024-02-17 00:40:45.193255000 +0700
+@@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Bos
+
+ #include "file_utils.h"
+ #include <mysql/service_mysql_alloc.h>
+-#ifdef __APPLE__
++#if defined(__APPLE__) || defined (__FreeBSD__)
+ #include <sys/event.h>
+ #else
+ #include <sys/epoll.h>
+@@ -391,7 +391,7 @@ File open_fifo_for_read_with_timeout(const char *path,
+ }
+
+ /* File was open, lets check its open on the other side */
+-#ifdef __APPLE__
++#if defined(__APPLE__) || defined(__FreeBSD__)
+ struct timespec tm = {timeout, 0};
+ int kqueue_fd = kqueue();
+ if (kqueue_fd < 0) {