aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-recvmsg.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-08 16:11:40 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-08 16:11:40 +0000
commitb3d021af18b2745d4a2594b05bc4e605d918a9e3 (patch)
treeeebee3b5d5f59cd9135567e1efe2560a0b7e505a /test-recvmsg.c
parent05ede23b72a253dad7a9e6f68dc14d4f2a1ea3c2 (diff)
downloadmandoc-b3d021af18b2745d4a2594b05bc4e605d918a9e3.tar.gz
mandoc-b3d021af18b2745d4a2594b05bc4e605d918a9e3.tar.zst
mandoc-b3d021af18b2745d4a2594b05bc4e605d918a9e3.zip
config glue for recvmsg(2) and CMSG_FIRSTHDR(3);
needed for Solaris 11
Diffstat (limited to 'test-recvmsg.c')
-rw-r--r--test-recvmsg.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test-recvmsg.c b/test-recvmsg.c
new file mode 100644
index 00000000..d026c70f
--- /dev/null
+++ b/test-recvmsg.c
@@ -0,0 +1,8 @@
+#include <sys/socket.h>
+#include <stddef.h>
+
+int
+main(void)
+{
+ return recvmsg(-1, NULL, 0) != -1;
+}