From 51bb9a8ab7d397f09c85a8adfd65d2b72a00b0d1 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Wed, 14 Dec 2022 20:21:08 -0300 Subject: [PATCH] Fixing CodeQL warning. --- configure.ac | 8 ++++++++ src/include/config.h.in | 3 +++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index 1467c90..dc25554 100644 --- a/configure.ac +++ b/configure.ac @@ -128,6 +128,14 @@ AC_SUBST(DLLPREFIX) AC_SUBST(DLL_LDFLAGS) dnl --------------------------------------------------------------------------- +dnl Check for headers +dnl --------------------------------------------------------------------------- + +AC_CHECK_HEADER(malloc.h, AC_DEFINE(HAVE_MALLOC_H,,[do we have malloc.h?])) +AC_CHECK_FUNC(localtime_r, AC_DEFINE(HAVE_LOCALTIME_R, [], [Do we have localtime_r?]) ) +AC_CHECK_FUNC(strtok_r, AC_DEFINE(HAVE_STRTOK_R, [], [Do we have strtok_r?]) ) + +dnl --------------------------------------------------------------------------- dnl Check for other programs dnl --------------------------------------------------------------------------- diff --git a/src/include/config.h.in b/src/include/config.h.in index 85809ee..d79ac38 100644 --- a/src/include/config.h.in +++ b/src/include/config.h.in @@ -37,6 +37,9 @@ #undef PRODUCT_NAME #undef APPLICATION_ID #undef ENABLE_UNSTABLE_FEATURES + #undef HAVE_MALLOC_H + #undef HAVE_STRTOK_R + #undef HAVE_LOCALTIME_R #endif /* PW3270_CONFIG_H_INCLUDED */ -- libgit2 0.21.2