This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Net - Fix build problems
- From: Gary Thomas <gary at chez-thomas dot org>
- To: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 20 Jun 2002 16:06:10 -0600
- Subject: Net - Fix build problems
Index: net/bsd_tcpip/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos-opt/net/net/bsd_tcpip/current/ChangeLog,v
retrieving revision 1.3
diff -u -5 -p -r1.3 ChangeLog
--- net/bsd_tcpip/current/ChangeLog 14 Jun 2002 21:35:31 -0000 1.3
+++ net/bsd_tcpip/current/ChangeLog 20 Jun 2002 22:04:59 -0000
@@ -1,5 +1,9 @@
+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:
Fix compile errors when CYGDBG_NET_TIMING_STATS enabled.
Index: net/bsd_tcpip/current/include/sys/param.h
===================================================================
RCS file: /misc/cvsfiles/ecos-opt/net/net/bsd_tcpip/current/include/sys/param.h,v
retrieving revision 1.1
diff -u -5 -p -r1.1 param.h
--- net/bsd_tcpip/current/include/sys/param.h 20 May 2002 22:25:01 -0000 1.1
+++ net/bsd_tcpip/current/include/sys/param.h 7 Jun 2002 17:40:19 -0000
@@ -934,10 +934,11 @@ vm_zone_t zinit(char *name, int size, in
void * zalloci(vm_zone_t z);
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
static __inline int imax(int a, int b) { return (a > b ? a : b); }
static __inline int imin(int a, int b) { return (a < b ? a : b); }
Index: net/common/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos-opt/net/net/common/current/ChangeLog,v
retrieving revision 1.5
diff -u -5 -p -r1.5 ChangeLog
--- net/common/current/ChangeLog 5 Jun 2002 13:16:26 -0000 1.5
+++ net/common/current/ChangeLog 20 Jun 2002 22:05:22 -0000
@@ -1,5 +1,9 @@
+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
replies that can be variable length.
Index: net/common/current/src/inet_ntop.c
===================================================================
RCS file: /misc/cvsfiles/ecos-opt/net/net/common/current/src/inet_ntop.c,v
retrieving revision 1.1
diff -u -5 -p -r1.1 inet_ntop.c
--- net/common/current/src/inet_ntop.c 20 May 2002 22:25:05 -0000 1.1
+++ net/common/current/src/inet_ntop.c 7 Jun 2002 17:51:49 -0000
@@ -43,11 +43,13 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#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 */
#endif
#ifndef INT16SZ