Skip to content

Commit fa9f36b

Browse files
author
MarcoFalke
committed
build: Remove HAVE_GMTIME_R
1 parent fa72dcb commit fa9f36b

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

configure.ac

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,22 +1092,6 @@ if test "$use_thread_local" = "yes" || test "$use_thread_local" = "auto"; then
10921092
LDFLAGS="$TEMP_LDFLAGS"
10931093
fi
10941094

1095-
dnl check for gmtime_r(), fallback to gmtime_s() if that is unavailable
1096-
dnl fail if neither are available.
1097-
AC_MSG_CHECKING([for gmtime_r])
1098-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <ctime>]],
1099-
[[ gmtime_r((const time_t *) nullptr, (struct tm *) nullptr); ]])],
1100-
[ AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_GMTIME_R], [1], [Define this symbol if gmtime_r is available]) ],
1101-
[ AC_MSG_RESULT([no]);
1102-
AC_MSG_CHECKING([for gmtime_s]);
1103-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <ctime>]],
1104-
[[ gmtime_s((struct tm *) nullptr, (const time_t *) nullptr); ]])],
1105-
[ AC_MSG_RESULT([yes])],
1106-
[ AC_MSG_RESULT([no]); AC_MSG_ERROR([Both gmtime_r and gmtime_s are unavailable]) ]
1107-
)
1108-
]
1109-
)
1110-
11111095
dnl Check for different ways of gathering OS randomness
11121096
AC_MSG_CHECKING([for Linux getrandom function])
11131097
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
@@ -1879,7 +1863,6 @@ AC_SUBST(MINIUPNPC_CPPFLAGS)
18791863
AC_SUBST(MINIUPNPC_LIBS)
18801864
AC_SUBST(NATPMP_CPPFLAGS)
18811865
AC_SUBST(NATPMP_LIBS)
1882-
AC_SUBST(HAVE_GMTIME_R)
18831866
AC_SUBST(HAVE_FDATASYNC)
18841867
AC_SUBST(HAVE_FULLFSYNC)
18851868
AC_SUBST(HAVE_O_CLOEXEC)

0 commit comments

Comments
 (0)