diff options
author | Tim Rice <tim@multitalents.net> | 2002-04-15 21:10:09 -0700 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2002-04-15 21:10:09 -0700 |
commit | 66480f188ec4cb55006a32763b41cf07cc5da781 (patch) | |
tree | 2159a3986c056041864b2cf04f634229f0a747b8 /monitor_fdpass.c | |
parent | eb3630205aade22db04bc0e973cb9ad27c179af7 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor_fdpass.c b/monitor_fdpass.c index 0045977e4..5401ea466 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 $"); | |||
34 | void | 34 | void |
35 | mm_send_fd(int socket, int fd) | 35 | mm_send_fd(int socket, int fd) |
36 | { | 36 | { |
37 | #if defined(HAVE_ACCRIGHTS_IN_MSGHDR) || defined(HAVE_CONTROL_IN_MSGHDR) | 37 | #if defined(HAVE_SENDMSG) && (defined(HAVE_ACCRIGHTS_IN_MSGHDR) || defined(HAVE_CONTROL_IN_MSGHDR)) |
38 | struct msghdr msg; | 38 | struct msghdr msg; |
39 | struct iovec vec; | 39 | struct iovec vec; |
40 | char ch = '\0'; | 40 | char ch = '\0'; |
@@ -78,7 +78,7 @@ mm_send_fd(int socket, int fd) | |||
78 | int | 78 | int |
79 | mm_receive_fd(int socket) | 79 | mm_receive_fd(int socket) |
80 | { | 80 | { |
81 | #if defined(HAVE_ACCRIGHTS_IN_MSGHDR) || defined(HAVE_CONTROL_IN_MSGHDR) | 81 | #if defined(HAVE_RECVMSG) && (defined(HAVE_ACCRIGHTS_IN_MSGHDR) || defined(HAVE_CONTROL_IN_MSGHDR)) |
82 | struct msghdr msg; | 82 | struct msghdr msg; |
83 | struct iovec vec; | 83 | struct iovec vec; |
84 | char ch; | 84 | char ch; |