Use non-ancient connect interface
This commit is contained in:
parent
ee277b2db3
commit
a702b2066f
2 changed files with 18 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
$NetBSD: distinfo,v 1.5 2015/11/03 01:56:36 agc Exp $
|
||||
$NetBSD: distinfo,v 1.6 2020/05/09 15:19:32 joerg Exp $
|
||||
|
||||
SHA1 (xsqlmenu-2.10.tar.gz) = d97c3237d5bfd2213648067196b5f6d4a57fe706
|
||||
RMD160 (xsqlmenu-2.10.tar.gz) = ab3f35954ce50de1bf391174d13045989839db84
|
||||
SHA512 (xsqlmenu-2.10.tar.gz) = 3dc1e84a39d390fac82f36e654819d0eba3c1cd32a26a01d6704d4ddccbe4c7d939aba09090789a70923744f071ac05941bc3697a05560601d08cffe9a5ffb99
|
||||
Size (xsqlmenu-2.10.tar.gz) = 31458 bytes
|
||||
SHA1 (patch-Xsqldefs.h) = 8eedffa8b92d0a9eae85e7879d65d04a34d91271
|
||||
SHA1 (patch-aa) = 68c45a0787adf3a840343cf968d1c2172822a080
|
||||
|
|
16
databases/xsqlmenu/patches/patch-Xsqldefs.h
Normal file
16
databases/xsqlmenu/patches/patch-Xsqldefs.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
$NetBSD: patch-Xsqldefs.h,v 1.1 2020/05/09 15:19:33 joerg Exp $
|
||||
|
||||
mysql_connect is gone.
|
||||
|
||||
--- Xsqldefs.h.orig 2020-05-09 01:21:30.054455724 +0000
|
||||
+++ Xsqldefs.h
|
||||
@@ -34,7 +34,8 @@
|
||||
#define sql_list_tables(sock, wild) mysql_list_tables(sock, wild)
|
||||
#define sql_list_fields(sock, table, wild) mysql_list_fields(sock, table, wild)
|
||||
#define sql_select_db(sock, db) mysql_select_db(sock, db)
|
||||
-#define sql_connect(sock, server, user, pass) mysql_connect(sock, server, user, pass)
|
||||
+#define sql_connect(sock, server, user, pass) mysql_real_connect(sock, server, user, pass, NULL, 0, NULL, 0)
|
||||
+
|
||||
#define sql_query(sock, query) mysql_query(sock, query)
|
||||
#define sql_close(sock) mysql_close(sock)
|
||||
#define SQL_FIELD MYSQL_FIELD
|
Loading…
Reference in a new issue