From f442ad8083d67e6bdf01894097126cd7ac3757d6 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 17 Oct 2006 00:01:41 +0000 Subject: r19356: Reapply portability fix.. (This used to be commit a48d1b2d16cb4edf5e10937427b1a757e0c5b822) --- source4/torture/subunit.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/torture/subunit.c') diff --git a/source4/torture/subunit.c b/source4/torture/subunit.c index 2ec01218ed..299ca3f015 100644 --- a/source4/torture/subunit.c +++ b/source4/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; } -- cgit