[PATCH] modules/rlm_sql: remove mysql_version.h
Matt Weber
matthew.weber at rockwellcollins.com
Mon Apr 12 18:38:00 CEST 2021
From: Jared Bents <jared.bents at rockwellcollins.com>
remove mysql_version.h as mysql.h is included and mysql_version.h
should not be included by per the header file warning
Signed-off-by: Jared Bents <jared.bents at rockwellcollins.com>
Signed-off-by: Matt Weber <matthew.weber at rockwellcollins.com>
---
Patch applied and tested on 3.0.21 with GCC 9.3
---
src/modules/rlm_sql/drivers/rlm_sql_mysql/rlm_sql_mysql.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/modules/rlm_sql/drivers/rlm_sql_mysql/rlm_sql_mysql.c b/src/modules/rlm_sql/drivers/rlm_sql_mysql/rlm_sql_mysql.c
index a7992647cd..ea44d0cc7a 100644
--- a/src/modules/rlm_sql/drivers/rlm_sql_mysql/rlm_sql_mysql.c
+++ b/src/modules/rlm_sql/drivers/rlm_sql_mysql/rlm_sql_mysql.c
@@ -34,12 +34,10 @@ RCSID("$Id$")
#include "config.h"
#ifdef HAVE_MYSQL_MYSQL_H
-# include <mysql/mysql_version.h>
# include <mysql/errmsg.h>
# include <mysql/mysql.h>
# include <mysql/mysqld_error.h>
#elif defined(HAVE_MYSQL_H)
-# include <mysql_version.h>
# include <errmsg.h>
# include <mysql.h>
# include <mysqld_error.h>
--
2.17.1
More information about the Freeradius-Devel
mailing list