Skip to content

Commit

Permalink
dev-db/mysql-connector-c: Use relative include path for udf_registrat…
Browse files Browse the repository at this point in the history
…ion_types.h

Closes: https://bugs.gentoo.org/692644
Package-Manager: Portage-2.3.72, Repoman-2.3.17
Signed-off-by: Thomas Deutschmann <[email protected]>
  • Loading branch information
Whissi committed Aug 23, 2019
1 parent 2d1f619 commit 5dfeaff
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
https://bugs.gentoo.org/692644

--- a/include/mysql.h.pp
+++ b/include/mysql.h.pp
@@ -175,7 +175,7 @@ struct rand_struct {
unsigned long seed1, seed2, max_value;
double max_value_dbl;
};
-#include <mysql/udf_registration_types.h>
+#include "mysql/udf_registration_types.h"
enum Item_result {
INVALID_RESULT = -1,
STRING_RESULT = 0,
--- a/include/mysql_com.h
+++ b/include/mysql_com.h
@@ -1002,7 +1002,7 @@ struct rand_struct {
};

/* Include the types here so existing UDFs can keep compiling */
-#include <mysql/udf_registration_types.h>
+#include "mysql/udf_registration_types.h"

/**
@addtogroup group_cs_compresson_constants Constants when using compression
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ S="${WORKDIR}/mysql-${PV}"

PATCHES=(
"${FILESDIR}"/${PN}-8.0.17-always-build-decompress-utilities.patch
"${FILESDIR}"/${PN}-8.0.17-use-relative-include-path-for-udf_registration_types-h.patch
"${FILESDIR}"/${PN}-8.0.17-libressl.patch
)

Expand Down

0 comments on commit 5dfeaff

Please sign in to comment.