From af84beae0fb01c6efe02fa000136b4049a8163df Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Tue, 17 Jun 2025 20:09:45 -0400 Subject: [PATCH] Improving SQL libray usage --- lib/Makefile | 6 +++++- lib/unimar.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index d263849..e974170 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -146,7 +146,11 @@ toremake: Makefile #-------------------------------------------------------------------- CC = gcc LD = gcc -CFLAGS = -Wall -D_GNU_SOURCE $(OPTIME) -DDATABASE=$(DB) +CFLAGS = -Wall -D_GNU_SOURCE \ + -DDATABASE=$(DB) \ + -Dwith_postgres \ + -Dwith_mysql \ + $(OPTIME) LIBMAIL = libmail.a PAR = -j`/usr/bin/getconf _NPROCESSORS_ONLN` #-------------------------------------------------------------------- diff --git a/lib/unimar.c b/lib/unimar.c index 897a213..a3013c1 100644 --- a/lib/unimar.c +++ b/lib/unimar.c @@ -82,7 +82,7 @@ MARPTR *mar_closesql(MARPTR *marptr) #define OPEP "sqlmar.c:mar_closesql," #ifdef DB_MYSQL - (void) mysql_close(MYSQL *marptr); + (void) mysql_close((MYSQL *)marptr); #else (void) fprintf(stderr,"%s not compiled to be used with mysql\n",OPEP); #endif -- 2.47.3