svn commit: samba r19346 - in branches/SAMBA_4_0/source/torture: .
jelmer at samba.org
jelmer at samba.org
Mon Oct 16 21:32:37 GMT 2006
Author: jelmer
Date: 2006-10-16 21:32:36 +0000 (Mon, 16 Oct 2006)
New Revision: 19346
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19346
Log:
AF_LOCAL isn't defined on all platforms.
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 20:27:08 UTC (rev 19345)
+++ branches/SAMBA_4_0/source/torture/subunit.c 2006-10-16 21:32:36 UTC (rev 19346)
@@ -72,7 +72,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;
}
More information about the samba-cvs
mailing list