From e636f96c487d87aad312bad3d511c7fbb477baf4 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 13 Jan 2017 20:40:26 -0700 Subject: [PATCH] add nanosleep to util.exp.in if needed --- configure | 10 +++++++++- configure.ac | 5 ++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/configure b/configure index af50342c3..e5c6271f3 100755 --- a/configure +++ b/configure @@ -19741,12 +19741,20 @@ $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : REPLAY_LIBS="${REPLAY_LIBS} -lrt" else - case " $LIBOBJS " in + + case " $LIBOBJS " in *" nanosleep.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" ;; esac + + for _sym in nanosleep; do + COMPAT_EXP="${COMPAT_EXP}${_sym} +" + done + + fi diff --git a/configure.ac b/configure.ac index ee3c3cf44..1812aec09 100644 --- a/configure.ac +++ b/configure.ac @@ -2580,7 +2580,10 @@ AC_CHECK_FUNCS([memset_s], [], [ ]) AC_CHECK_FUNCS(nanosleep, [], [ # On Solaris, nanosleep is in librt - AC_CHECK_LIB(rt, nanosleep, [REPLAY_LIBS="${REPLAY_LIBS} -lrt"], [AC_LIBOBJ(nanosleep)]) + AC_CHECK_LIB(rt, nanosleep, [REPLAY_LIBS="${REPLAY_LIBS} -lrt"], [ + AC_LIBOBJ(nanosleep) + SUDO_APPEND_COMPAT_EXP(nanosleep) + ]) ]) AC_CHECK_FUNCS([pw_dup], [], [ AC_LIBOBJ(pw_dup) -- 2.50.1