Explorar el Código

add with_fdsetsize option for allowing setting of FD_SETSIZE define

Ralf S. Engelschall hace 22 años
padre
commit
4b7544f8ab
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      postfix/postfix.spec

+ 8 - 0
postfix/postfix.spec

@@ -48,6 +48,7 @@ Release:      20030724
 %option       with_mysql     no
 %option       with_ldap      no
 %option       with_whoson    no
+%option       with_fdsetsize no
 
 #   list of sources
 Source0:      ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-%{V_postfix}.tar.gz
@@ -181,6 +182,13 @@ Conflicts:    exim, sendmail, ssmtp
     AUXLIBS="$AUXLIBS -lldap -llber -lssl -lcrypto"
 %endif
     AUXLIBS="$AUXLIBS %{l_fsl_ldflags} %{l_fsl_libs}"
+%if "%{with_fdsetsize}" != "no"
+%if "%{with_fdsetsize}" == "yes"
+    CCARGS="$CCARGS -DFD_SETSIZE=1024"
+%else
+    CCARGS="$CCARGS -DFD_SETSIZE=%{with_fdsetsize}"
+%endif
+%endif
     %{l_make} %{l_mflags} makefiles \
         CC="%{l_cc}" CCARGS="$CCARGS" AUXLIBS="$AUXLIBS"