Ticket #5936 defect new
Building sendmsg.so on AIX requires extra define
|Reported by:||schlenk||Owned by:||schlenk|
Description (last modified by exarkun) (diff)
When building the 12.2.0 release with GCC on AIX, the symbols CMSG_SIZE and CMSG_LEN come up as undefined.
twisted/python/sendmsg.c: In function 'sendmsg_sendmsg': twisted/python/sendmsg.c:243: warning: implicit declaration of function 'CMSG_SPACE' twisted/python/sendmsg.c:306: warning: implicit declaration of function 'CMSG_LEN'
Those symbols are only defined when _LINUX_SOURCE_COMPAT is defined on AIX.
Adding -D_LINUX_SOURCE_COMPAT to CFLAGS or in front of the sys/socket.h include fixes it.