git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73f1d93
)
r19356: Reapply portability fix..
author
Jelmer Vernooij
<jelmer@samba.org>
Tue, 17 Oct 2006 00:01:41 +0000
(
00:01
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:21:15 +0000
(14:21 -0500)
source/torture/subunit.c
patch
|
blob
|
history
diff --git
a/source/torture/subunit.c
b/source/torture/subunit.c
index 2ec01218ed3099b843e9db784eb10e45e0b67ff6..299ca3f0153ccc4d2308038923d13f8f87ca7b41 100644
(file)
--- a/
source/torture/subunit.c
+++ b/
source/torture/subunit.c
@@
-92,7
+92,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;
}