Re: Re: CMSG_SPACE on NetBSD

2010-03-02 Thread Nicholas Marriott
Hi Have you got a fix for this in imsg.c? I find it hard to understand why NetBSD have done something so patently stupid but I suppose since they have we will have to handle it, at least in the portable tmux. On Tue, Feb 23, 2010 at 01:33:32PM +0300, Alexander Nasonov wrote: > Hi Nicholas, > I

Re: Re: CMSG_SPACE on NetBSD

2010-02-23 Thread Alexander Nasonov
Hi Nicholas, I don't think that variable size array inside a union is allowed by C99. I don't have a copy of the standard but N1256 says: (in 6.7.2.1 Structure and union specifiers) "A member of a structure or union may have any object type other than a variably modified type." "variably modifi

Re: CMSG_SPACE on NetBSD

2010-02-22 Thread Nicholas Marriott
Hi Did you try building with -std=c99? On Mon, Feb 22, 2010 at 11:39:44PM +, Alexander Nasonov wrote: > After being subscribed to this list for a while, the list is > apparently alive. Seems like my message was sent at the worng time. > > Nikolas, > What's your view on using a buffer with

Re: CMSG_SPACE on NetBSD

2010-02-22 Thread Alexander Nasonov
After being subscribed to this list for a while, the list is apparently alive. Seems like my message was sent at the worng time. Nikolas, What's your view on using a buffer with a size known only at runtime? Thanks, Alex Alexander Nasonov wrote: > Hi, > > CMSG_SPACE(sizeof(int)) does not retur