Blame vdr-scraper2vdr-mariadb-fix-build.patch

c8e8e6
diff -Naur scraper2vdr-254122b25833980410f6373b397dd3459cb642e9-ORIG/lib/db.c scraper2vdr-254122b25833980410f6373b397dd3459cb642e9/lib/db.c
c8e8e6
--- scraper2vdr-254122b25833980410f6373b397dd3459cb642e9-ORIG/lib/db.c	2017-07-14 18:30:56.958885292 +0200
c8e8e6
+++ scraper2vdr-254122b25833980410f6373b397dd3459cb642e9/lib/db.c	2017-07-14 18:51:03.581320730 +0200
c8e8e6
@@ -1344,11 +1344,19 @@
c8e8e6
 
c8e8e6
    if (error == CR_SERVER_LOST ||
c8e8e6
        error == CR_SERVER_GONE_ERROR ||
c8e8e6
+// for compatibility with newer versions of MariaDB library
c8e8e6
+#ifdef CR_INVALID_CONN_HANDLE
c8e8e6
        error == CR_INVALID_CONN_HANDLE ||
c8e8e6
+#endif
c8e8e6
        error == CR_COMMANDS_OUT_OF_SYNC ||
c8e8e6
        error == CR_SERVER_LOST_EXTENDED ||
c8e8e6
        error == CR_STMT_CLOSED ||
c8e8e6
+// for compatibility with newer versions of MariaDB library
c8e8e6
+#ifdef CR_CONN_UNKNOW_PROTOCOL
c8e8e6
        error == CR_CONN_UNKNOW_PROTOCOL ||
c8e8e6
+#else
c8e8e6
+       error == CR_CONN_UNKNOWN_PROTOCOL ||
c8e8e6
+#endif
c8e8e6
        error == CR_UNSUPPORTED_PARAM_TYPE ||
c8e8e6
        error == CR_NO_PREPARE_STMT ||
c8e8e6
        error == CR_SERVER_HANDSHAKE_ERR ||