From: Todd C. Miller Date: Sat, 14 Jan 2017 03:40:26 +0000 (-0700) Subject: add nanosleep to util.exp.in if needed X-Git-Tag: SUDO_1_8_19p2^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e636f96c487d87aad312bad3d511c7fbb477baf4;p=sudo add nanosleep to util.exp.in if needed --- 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)