Ticket #412: fix-solaris-socketpair.patch

File fix-solaris-socketpair.patch, 906 bytes (added by Pavel Strashkin, 15 years ago)
  • xapian-omega-1.0.13

    old new  
    106106  [AC_DEFINE(HAVE_POSIX_FADVISE, 1, [Define to 1 if you have the 'posix_fadvise' function])]
    107107)
    108108
    109 dnl omindex uses fork(), socketpair(), and setrlimit() to impose resource
     109dnl omindex uses fork() and setrlimit() to impose resource
    110110dnl limits on filter programs.
    111 AC_CHECK_FUNCS([mmap fork setrlimit socketpair sysmp pstat_getdynamic])
     111AC_CHECK_FUNCS([mmap fork setrlimit sysmp pstat_getdynamic])
     112
     113dnl Check for socketpair function in xnet library under OpenSolaris
     114case $host_os in
     115    *solaris*)
     116        AC_CHECK_LIB(xnet, socketpair, [AC_DEFINE(HAVE_SOCKETPAIR, 1, [Define to 1 if you have the 'socketpair' function and 'xnet' library under Solaris])])
     117        ;;
     118
     119    *)
     120        AC_CHECK_FUNCS([socketpair])
     121        ;;
     122esac
    112123
    113124dnl Check that snprintf actually works as it's meant to.
    114125dnl