Commit 51bb9a8ab7d397f09c85a8adfd65d2b72a00b0d1

Authored by Perry Werneck
1 parent 67ba171d
Exists in master and in 1 other branch develop

Fixing CodeQL warning.

Showing 2 changed files with 11 additions and 0 deletions   Show diff stats
configure.ac
... ... @@ -128,6 +128,14 @@ AC_SUBST(DLLPREFIX)
128 128 AC_SUBST(DLL_LDFLAGS)
129 129  
130 130 dnl ---------------------------------------------------------------------------
  131 +dnl Check for headers
  132 +dnl ---------------------------------------------------------------------------
  133 +
  134 +AC_CHECK_HEADER(malloc.h, AC_DEFINE(HAVE_MALLOC_H,,[do we have malloc.h?]))
  135 +AC_CHECK_FUNC(localtime_r, AC_DEFINE(HAVE_LOCALTIME_R, [], [Do we have localtime_r?]) )
  136 +AC_CHECK_FUNC(strtok_r, AC_DEFINE(HAVE_STRTOK_R, [], [Do we have strtok_r?]) )
  137 +
  138 +dnl ---------------------------------------------------------------------------
131 139 dnl Check for other programs
132 140 dnl ---------------------------------------------------------------------------
133 141  
... ...
src/include/config.h.in
... ... @@ -37,6 +37,9 @@
37 37 #undef PRODUCT_NAME
38 38 #undef APPLICATION_ID
39 39 #undef ENABLE_UNSTABLE_FEATURES
  40 + #undef HAVE_MALLOC_H
  41 + #undef HAVE_STRTOK_R
  42 + #undef HAVE_LOCALTIME_R
40 43  
41 44 #endif /* PW3270_CONFIG_H_INCLUDED */
42 45  
... ...