Return to test-cmsg.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
File: [cvsweb.bsd.lv] / mandoc / test-cmsg.c (download)
Revision 1.1, Wed Feb 8 16:11:41 2017 UTC (7 years, 7 months ago) by schwarze
config glue for recvmsg(2) and CMSG_FIRSTHDR(3); needed for Solaris 11 |
#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; }