瀏覽代碼

gethostbyname_r has different number of arguments on different platforms, so do not try to use it unless the configure is smart enough to deal with different number of arguments

Ralf S. Engelschall 21 年之前
父節點
當前提交
ef75ba394d
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      geoip/geoip.spec

+ 3 - 1
geoip/geoip.spec

@@ -38,7 +38,7 @@ Class:        PLUS
 Group:        Network
 License:      GPL
 Version:      %{V_api_c}
-Release:      20041007
+Release:      20041008
 
 #   package options
 %option       with_perl   no
@@ -86,12 +86,14 @@ AutoReqProv:  no
         Makefile.in */Makefile.in
 
 %build
+    echo "ac_cv_func_gethostbyname_r=no" >config.cache
     CC="%{l_cc}" \
     CFLAGS="%{l_cflags -O}" \
     CPPFLAGS="%{l_cppflags}" \
     LDFLAGS="%{l_ldflags}" \
     LIBS="-lz" \
     ./configure \
+        --cache-file=./config.cache \
         --prefix=%{l_prefix} \
         --sysconfdir=%{l_prefix}/etc/geoip \
         --mandir=$RPM_BUILD_ROOT%{l_prefix}/man \