[Asterisk-bsd] utils.c will not compile

Dr. Rich Murphey asterisk-bsd@lists.digium.com
Tue, 29 Jun 2004 13:38:32 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0059_01C45DDE.5EF78860
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Here's a fix.  I don't see there other warnings with cvs-head, but if they
persist, just say so and we can take another look!

Rich

> -----Original Message-----
> From: asterisk-bsd-admin@lists.digium.com [mailto:asterisk-bsd-
> admin@lists.digium.com] On Behalf Of Olle E. Johansson
> Sent: Tuesday, June 29, 2004 1:10 PM
> To: asterisk-bsd@lists.digium.com
> Subject: [Asterisk-bsd] utils.c will not compile
> 
> 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


------=_NextPart_000_0059_01C45DDE.5EF78860
Content-Type: text/plain;
	name="utils.h.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="utils.h.txt"

Index: include/asterisk/utils.h=0A=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=
RCS file: /usr/cvsroot/asterisk/include/asterisk/utils.h,v=0A=
retrieving revision 1.5=0A=
diff -u -r1.5 utils.h=0A=
--- include/asterisk/utils.h	29 Jun 2004 12:56:46 -0000	1.5=0A=
+++ include/asterisk/utils.h	29 Jun 2004 18:36:51 -0000=0A=
@@ -32,6 +32,9 @@=0A=
 extern const char *ast_inet_ntoa(char *buf, int bufsiz, struct in_addr =
ia);=0A=
 extern int ast_utils_init(void);=0A=
 =0A=
+#ifdef inet_ntoa=0A=
+#undef inet_ntoa=0A=
+#endif=0A=
 #define inet_ntoa __dont__use__inet_ntoa__use__ast_inet_ntoa__instead__=0A=
 =0A=
 #endif=0A=

------=_NextPart_000_0059_01C45DDE.5EF78860--