[Asterisk-bsd] utils.c will not compile
Chris Luke
asterisk-bsd@lists.digium.com
Tue, 29 Jun 2004 13:41:30 -0500
That's because of:
#define inet_ntoa __inet_ntoa
in arpa/inet.h
If you change the new #define inet_ntoa that errors to something like
#ifdef inet_ntoa
# undef inet_ntoa
#endif
#define inet_ntoa _dont_use_me_use_ast_inet_ntoa
the error will go away.
Chris.
Olle E. Johansson wrote (on Jun 29):
> Anyone else having problems compiling util.c with the new ntoa function?
> Using latest CVS, it compiles on Linux, but not on FreeBSD
>
> In file included from utils.c:19:
> include/asterisk/utils.h:35: warning: `inet_ntoa' redefined
> /usr/include/arpa/inet.h:78: warning: this is the location of the previous
> definition
> In file included from utils.c:12:
> /usr/include/arpa/inet.h:89: warning: parameter has incomplete type
> /usr/include/arpa/inet.h:92: warning: parameter has incomplete type
> /usr/include/arpa/inet.h:96: warning: parameter has incomplete type
> In file included from utils.c:19:
> include/asterisk/utils.h:32: warning: parameter has incomplete type
> utils.c:332: parameter `ia' has incomplete type
> gmake: *** [utils.o] Error 1
>
> /Olle
> _______________________________________________
> Asterisk-BSD mailing list
> Asterisk-BSD@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd
>
--
== chrisy@flirble.org