File: fix-mysql-detection.patch

package info (click to toggle)
libgda5 5.2.10-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 76,124 kB
  • sloc: ansic: 495,319; xml: 10,486; yacc: 5,165; sh: 4,451; makefile: 4,095; php: 1,416; java: 1,300; javascript: 1,298; python: 896; sql: 879; perl: 116
file content (21 lines) | stat: -rw-r--r-- 565 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Andrey Rakhmatullin <wrar@debian.org>
Date: Sat, 23 Mar 2024 16:10:52 +0500
Subject: Fix MySQL detection with -Werror=implicit-function-declaration

Bug-Debian: https://bugs.debian.org/1066768
---
 m4/mysql.m4 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/m4/mysql.m4 b/m4/mysql.m4
index 535a081..fda32cf 100644
--- a/m4/mysql.m4
+++ b/m4/mysql.m4
@@ -176,6 +176,7 @@ int main() {
 	    LIBS="$LIBS $MYSQL_LIBS"
 
             AC_LINK_IFELSE([AC_LANG_SOURCE([
+#include <stdio.h>
 #include <mysql.h>
 int main() {
     printf("%p", mysql_real_connect);