summaryrefslogtreecommitdiff
path: root/monitor_fdpass.c
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2002-04-15 21:10:09 -0700
committerTim Rice <tim@multitalents.net>2002-04-15 21:10:09 -0700
commit66480f188ec4cb55006a32763b41cf07cc5da781 (patch)
tree2159a3986c056041864b2cf04f634229f0a747b8 /monitor_fdpass.c
parenteb3630205aade22db04bc0e973cb9ad27c179af7 (diff)
[configure.ac] add tests for recvmsg and sendmsg.
[monitor_fdpass.c] add checks for HAVE_SENDMSG and HAVE_RECVMSG for systems that HAVE_ACCRIGHTS_IN_MSGHDR but no recvmsg or sendmsg.
Diffstat (limited to 'monitor_fdpass.c')
-rw-r--r--monitor_fdpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor_fdpass.c b/monitor_fdpass.c
index 0045977e..5401ea46 100644
--- a/monitor_fdpass.c
+++ b/monitor_fdpass.c
@@ -34,7 +34,7 @@ RCSID("$OpenBSD: monitor_fdpass.c,v 1.2 2002/03/24 17:53:16 stevesk Exp $");
void
mm_send_fd(int socket, int fd)
{
-#if defined(HAVE_ACCRIGHTS_IN_MSGHDR) || defined(HAVE_CONTROL_IN_MSGHDR)
+#if defined(HAVE_SENDMSG) && (defined(HAVE_ACCRIGHTS_IN_MSGHDR) || defined(HAVE_CONTROL_IN_MSGHDR))
struct msghdr msg;
struct iovec vec;
char ch = '\0';
@@ -78,7 +78,7 @@ mm_send_fd(int socket, int fd)
int
mm_receive_fd(int socket)
{
-#if defined(HAVE_ACCRIGHTS_IN_MSGHDR) || defined(HAVE_CONTROL_IN_MSGHDR)
+#if defined(HAVE_RECVMSG) && (defined(HAVE_ACCRIGHTS_IN_MSGHDR) || defined(HAVE_CONTROL_IN_MSGHDR))
struct msghdr msg;
struct iovec vec;
char ch;