Add trivial definitions of RFC 2292 CMSG_LEN() CMSG_SIZE()

This commit is contained in:
saper
2015-08-14 00:30:42 +02:00
committed by Amadeusz Sławiński
parent bfd4662c36
commit cbda652881

View File

@@ -51,6 +51,13 @@
# define dirent direct
#endif
#ifndef CMSG_LEN
#define CMSG_LEN(length) ((_CMSG_DATA_ALIGN(sizeof(struct cmsghdr))) + (length))
#endif
#ifndef CMSG_SPACE
#define CMSG_SPACE(length) ((_CMSG_DATA_ALIGN(sizeof(struct cmsghdr))) + (_CMSG_DATA_ALIGN(length)))
#endif
#include "extern.h"
#include "list_generic.h"