Revision 0ba22212 linux-user/syscall_defs.h

b/linux-user/syscall_defs.h
164 164

  
165 165
#define TARGET_CMSG_DATA(cmsg) ((unsigned char *) ((struct target_cmsghdr *) (cmsg) + 1))
166 166
#define TARGET_CMSG_NXTHDR(mhdr, cmsg) __target_cmsg_nxthdr (mhdr, cmsg)
167
#define TARGET_CMSG_FIRSTHDR(mhdr) \
168
  ((size_t) tswapl((mhdr)->msg_controllen) >= sizeof (struct target_cmsghdr) \
169
   ? (struct target_cmsghdr *) tswapl((mhdr)->msg_control) : (struct target_cmsghdr *) NULL)
170 167
#define TARGET_CMSG_ALIGN(len) (((len) + sizeof (abi_long) - 1) \
171 168
                               & (size_t) ~(sizeof (abi_long) - 1))
172 169
#define TARGET_CMSG_SPACE(len) (TARGET_CMSG_ALIGN (len) \

Also available in: Unified diff