From: Jean-Marc Pigeon (Delson) Date: Wed, 18 Jun 2025 00:09:45 +0000 (-0400) Subject: Improving SQL libray usage X-Git-Tag: tag-0.9~121 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=af84beae0fb01c6efe02fa000136b4049a8163df;p=jmp%2Fmailleur Improving SQL libray usage --- 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