Blame SOURCES/mysql-header-file-include.patch

a1be07
include "..." looks into relative path first
a1be07
include <...> doesn't look into relative path at all
a1be07
a1be07
The "udf_..." file is in the correct location relative to the "mysql_com.h" file.
a1be07
a1be07
Related: #1623950
a1be07
a1be07
--- mysql-8.0.11/include/mysql_com.h	2018-04-08 08:44:49.000000000 +0200
a1be07
+++ mysql-8.0.11/include/mysql_com.h_patched	2018-09-13 13:32:50.018156166 +0200
a1be07
@@ -1008,7 +1008,7 @@ struct rand_struct {
a1be07
 };
a1be07
 
a1be07
 /* Include the types here so existing UDFs can keep compiling */
a1be07
-#include <mysql/udf_registration_types.h>
a1be07
+#include "mysql/udf_registration_types.h"
a1be07
 
a1be07
 /**
a1be07
   @addtogroup group_cs_compresson_constants Constants when using compression
a1be07
a1be07
a1be07
a1be07
a1be07
We need to patch the Cmake ABI check file too
a1be07
--- mysql-8.0.11/include/mysql.h.pp	2018-04-08 08:44:49.000000000 +0200
a1be07
+++ mysql-8.0.11/include/mysql.h.pp_patched	2018-09-14 13:19:21.763401087 +0200
a1be07
@@ -173,7 +173,7 @@ struct rand_struct {
a1be07
   unsigned long seed1, seed2, max_value;
a1be07
   double max_value_dbl;
a1be07
 };
a1be07
-#include <mysql/udf_registration_types.h>
a1be07
+#include "mysql/udf_registration_types.h"
a1be07
 enum Item_result {
a1be07
   INVALID_RESULT = -1,
a1be07
   STRING_RESULT = 0,