Author: jelmer Date: 2006-10-17 00:01:41 +0000 (Tue, 17 Oct 2006) New Revision: 19356
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19356 Log: Reapply portability fix.. Modified: branches/SAMBA_4_0/source/torture/subunit.c Changeset: Modified: branches/SAMBA_4_0/source/torture/subunit.c =================================================================== --- branches/SAMBA_4_0/source/torture/subunit.c 2006-10-16 23:42:15 UTC (rev 19355) +++ branches/SAMBA_4_0/source/torture/subunit.c 2006-10-17 00:01:41 UTC (rev 19356) @@ -92,7 +92,11 @@ pid_t pid; int sock[2]; - if (socketpair(PF_UNIX, SOCK_STREAM, AF_LOCAL, sock) == -1) { +#ifdef HAVE_SOCKETPAIR + if (socketpair(AF_UNIX, SOCK_STREAM, 0, sock) == -1) { +#else + if (pipe(sock) == -1) { +#endif DEBUG(0, ("socketpair: %s", strerror(errno))); return -1; }