git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa030e4
)
r19346: AF_LOCAL isn't defined on all platforms.
author
Jelmer Vernooij
<jelmer@samba.org>
Mon, 16 Oct 2006 21:32:36 +0000
(21:32 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:21:14 +0000
(14:21 -0500)
source/torture/subunit.c
patch
|
blob
|
history
diff --git
a/source/torture/subunit.c
b/source/torture/subunit.c
index 72e39101e2b0b676d885de6ec0907efe7d741260..3cad622d6fb6d9ecc0348929573ac519d4fdcf5e 100644
(file)
--- a/
source/torture/subunit.c
+++ b/
source/torture/subunit.c
@@
-72,7
+72,11
@@
static pid_t piped_child(char* const command[], int *f_in)
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;
}