[mw-devel] Weird error compiling mw in c99 mode

Steve Hill steve at nexusuk.org
Tue Mar 21 09:12:46 GMT 2006


On Tue, 21 Mar 2006, Peter Berry wrote:

> Note that I've added -std=c99 and -D_GNU_SOURCE to CFLAGS. Here's the 
> offending code:
>
>                struct sockaddr sa;

Shouldn't this be a struct sockaddr_in? (Or even better - struct 
sockaddr_in6)

> __SOCKADDR_ARG so it must be typedef'd somewhere, but I can't find anything 
> in the headers.

grep is your friend:
/usr/include/sys/socket.h:# define __SOCKADDR_ARG struct sockaddr *__restrict

-- 

  - Steve
    xmpp:steve at nexusuk.org   sip:steve at nexusuk.org   http://www.nexusuk.org/

      Servatis a periculum, servatis a maleficum - Whisper, Evanescence




More information about the mw-devel mailing list