# HG changeset patch # User Brian Utterback # Date 1411433981 25200 # Node ID c52a5c57208c89e62f385f6dfdc3b038db300408 # Parent 68a65d314e35cfe7d399a6ce6f50f680baade7cd 19239176 NTP configure script fails to detect if_nametoindex library call. diff -r 68a65d314e35 -r c52a5c57208c components/ntp/patches/82-nametoindex.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/ntp/patches/82-nametoindex.patch Mon Sep 22 17:59:41 2014 -0700 @@ -0,0 +1,26 @@ +This patch modifies the configure script to correctly detect the +if_nametoindex function. This fix is integrated in ntp-dev-4.2.7p394. +This patch may be removed when upgrading NTP to a later version. +See NTP bug 2256 for details. + +--- configure ++++ configure +@@ -35243,6 +35670,8 @@ + fi + + esac ++SAVED_LIBS="$LIBS" ++LIBS="$LDADD_LIBNTP $LIBS" + for ac_func in if_nametoindex + do : + ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" +@@ -35254,6 +35683,8 @@ + fi + done + ++LIBS="$SAVED_LIBS" ++{ SAVED_LIBS=; unset SAVED_LIBS;} + case "$ac_cv_func_if_nametoindex" in + yes) + +