]> granicus.if.org Git - sudo/commitdiff
add nanosleep to util.exp.in if needed
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 14 Jan 2017 03:40:26 +0000 (20:40 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 14 Jan 2017 03:40:26 +0000 (20:40 -0700)
configure
configure.ac

index af50342c3869a76d5128eed95815246cd053350c..e5c6271f3a92e5e807eeaf1912f9536db1f1dadf 100755 (executable)
--- 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
 
 
index ee3c3cf441495ae6b152b594bb466709f93886c9..1812aec094564d9b1e382ab9a883d9434cee4856 100644 (file)
@@ -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)