changeset 220:e3ee4b61fbea

Clean up - better building with newest tools.
author gthomas
date Thu, 20 Jun 2002 22:05:55 +0000
parents ae8511176102
children 6a3479d240be
files packages/net/bsd_tcpip/current/ChangeLog packages/net/bsd_tcpip/current/include/sys/param.h packages/net/common/current/ChangeLog packages/net/common/current/src/inet_ntop.c
diffstat 4 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packages/net/bsd_tcpip/current/ChangeLog
+++ b/packages/net/bsd_tcpip/current/ChangeLog
@@ -1,3 +1,7 @@
+2002-06-20  Gary Thomas  <gary@chez-thomas.org>
+
+	* include/sys/param.h (sprintf): Map to diag_sprintf().
+
 2002-06-14  Gary Thomas  <gary@chez-thomas.org>
 
 	* src/ecos/support.c: 
--- a/packages/net/bsd_tcpip/current/include/sys/param.h
+++ b/packages/net/bsd_tcpip/current/include/sys/param.h
@@ -936,6 +936,7 @@ void      zfreei(vm_zone_t z, void *item
 
 // Function mapping
 #define printf     diag_printf
+#define sprintf    diag_sprintf
 #define snprintf   diag_snprintf
 
 // Missing standard functions
--- a/packages/net/common/current/ChangeLog
+++ b/packages/net/common/current/ChangeLog
@@ -1,3 +1,7 @@
+2002-06-20  Gary Thomas  <gary@chez-thomas.org>
+
+	* src/inet_ntop.c: Fix build error when used with newer compilers.
+
 2002-06-05  Gary Thomas  <gary@chez-thomas.org>
 
 	* src/dhcp_prot.c (_dhcp_copy): New function used to better handle
--- a/packages/net/common/current/src/inet_ntop.c
+++ b/packages/net/common/current/src/inet_ntop.c
@@ -45,7 +45,9 @@
 #include <arpa/nameser.h>
 #include <string.h>
 #include <errno.h>
+#ifndef CYGPKG_NET_FREEBSD_STACK
 #include <stdio.h>
+#endif
 
 #ifndef IN6ADDRSZ
 #define IN6ADDRSZ    16      /* IPv6 T_AAAA */