Am 03.11.2005 um 00:02 schrieb Vlad Seryakov:
I am not sure why AC_HAVE_CMMSG is no define, i added it into
configure.in and under m4/cmmsg.m4. On linux no errors.
You did not check-in the m4/cmmsg.m4.
Also, can you find the definition of struct msghdr in sys/socket.h,
looks like Darwin has different fields there.
Here it is:
/*
* [XSI] Message header for recvmsg and sendmsg calls.
* Used value-result for recvmsg, value only for sendmsg.
*/
struct msghdr {
void *msg_name; /* [XSI] optional address */
socklen_t msg_namelen; /* [XSI] size of address */
struct iovec *msg_iov; /* [XSI] scatter/gather
array */
int msg_iovlen; /* [XSI] # elements in
msg_iov */
void *msg_control; /* [XSI] ancillary data, see
below */
socklen_t msg_controllen; /* [XSI] ancillary data
buffer len */
int msg_flags; /* [XSI] flags on received
message */
};