Hi,

configure[.in] uses a C program to determine the value of 
SHUTDOWN_WORKS_WITH_UNIX_SOCKETS.
The program uses the value AF_LOCAL, which isn't defined in any of the include files 
of my system 
(S.u.S.E. Linux 5.3 (i386) - Kernel 2.0.35).
Because of this, the value of SHUTDOWN_WORKS_WITH_UNIX_SOCKETS gets the wrong value 
"no" all the time.
(On a SparcStation with Solaris 2.5 AF_LOCAL seems to be undefined too).
When I changed AF_LOCAL to AF_UNIX in configure, the correct result is determinded:

checking for working shutdown on AF_UNIX sockets... yes

-- Heinz


1999-02-08  Heinz Knutzen  <[EMAIL PROTECTED]>

        * configure.in: Changed AF_LOCAL to AF_UNIX in check for working shutdown on 
AF_UNIX sockets


*** configure.in.orig   Thu Jan 28 08:55:06 1999
--- configure.in        Mon Feb  8 21:34:53 1999
***************
*** 218,224 ****
  #define SHUT_RDWR 2
  #endif

!   if (socketpair(AF_LOCAL, SOCK_STREAM, 0, fds) < 0)
      {
        fprintf(stderr, "socketpair() failed: %s\n", strerror(errno));
        return 0;
--- 218,224 ----
  #define SHUT_RDWR 2
  #endif

!   if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds) < 0)
      {
        fprintf(stderr, "socketpair() failed: %s\n", strerror(errno));
        return 0;


Reply via email to