components/ntp/patches/82-nametoindex.patch
branchs11-update
changeset 3573 7e043dae7c72
parent 3566 ec4e7d7baea6
child 3584 7267112f20f6
equal deleted inserted replaced
3566:ec4e7d7baea6 3573:7e043dae7c72
     1 This patch modifies the configure script to correctly detect the 
       
     2 if_nametoindex function. This fix is integrated in ntp-dev-4.2.7p394.
       
     3 This patch may be removed when upgrading NTP to a later version.
       
     4 See NTP bug 2256 for details.
       
     5 
       
     6 --- configure
       
     7 +++ configure
       
     8 @@ -35243,6 +35670,8 @@
       
     9  fi
       
    10 
       
    11  esac
       
    12 +SAVED_LIBS="$LIBS"
       
    13 +LIBS="$LDADD_LIBNTP $LIBS"
       
    14  for ac_func in if_nametoindex
       
    15  do :
       
    16    ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
       
    17 @@ -35254,6 +35683,8 @@
       
    18  fi
       
    19  done
       
    20 
       
    21 +LIBS="$SAVED_LIBS"
       
    22 +{ SAVED_LIBS=; unset SAVED_LIBS;}
       
    23  case "$ac_cv_func_if_nametoindex" in
       
    24   yes)
       
    25 
       
    26