summaryrefslogtreecommitdiff
path: root/databases/mysql55-client/patches/patch-client_mysqlbinlog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mysql55-client/patches/patch-client_mysqlbinlog.cc')
-rw-r--r--databases/mysql55-client/patches/patch-client_mysqlbinlog.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/databases/mysql55-client/patches/patch-client_mysqlbinlog.cc b/databases/mysql55-client/patches/patch-client_mysqlbinlog.cc
new file mode 100644
index 00000000000..5a65da17ba6
--- /dev/null
+++ b/databases/mysql55-client/patches/patch-client_mysqlbinlog.cc
@@ -0,0 +1,16 @@
+$NetBSD: patch-client_mysqlbinlog.cc,v 1.1.1.1 2011/04/25 21:12:53 adam Exp $
+
+* Portability: include <bstring.h> if exists.
+
+--- client/mysqlbinlog.cc.orig 2010-02-04 11:36:52.000000000 +0000
++++ client/mysqlbinlog.cc
+@@ -35,6 +35,9 @@
+ #include "log_event.h"
+ #include "sql_common.h"
+ #include <welcome_copyright_notice.h> // ORACLE_WELCOME_COPYRIGHT_NOTICE
++#ifdef NEEDS_BSTRING_H
++#include <bstring.h> /* defines bzero() */
++#endif
+
+ #define BIN_LOG_HEADER_SIZE 4
+ #define PROBE_HEADER_LEN (EVENT_LEN_OFFSET+4)