Jelajahi Sumber

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 tahun lalu
induk
melakukan
ef75ba394d
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  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 \