freebsd-skq/contrib/mandoc/test-cmsg.c

14 lines
174 B
C
Raw Normal View History

2017-02-19 17:41:20 +00:00
#include <stddef.h>
#include <sys/socket.h>
int
main(void)
{
struct msghdr msg;
msg.msg_control = NULL;
msg.msg_controllen = 0;
return CMSG_FIRSTHDR(&msg) != NULL;
}