#include #ifdef __cplusplus extern "C" { #endif typedef struct msghdr msghdr_t; typedef struct cmsghdr cmsghdr_t; size_t CMSG_SPACE_(size_t length) { return CMSG_SPACE(length); } size_t CMSG_LEN_(size_t length) { return CMSG_LEN(length); } unsigned char* CMSG_DATA_(cmsghdr_t* cmsg) { return CMSG_DATA(cmsg); } #ifdef __cplusplus } #endif