This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
compilation error fix to freebsd stack
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Wed, 21 Apr 2004 12:41:04 +0200
- Subject: compilation error fix to freebsd stack
- Organization: Zylin AS
Found these while trying to run the freebsd_net stack w/PPP.
freebsd_net compiles, but PPP is missing some include files with this
stack.
--
Øyvind Harboe
http://www.zylin.com
Index: current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/tcpip/current/ChangeLog,v
retrieving revision 1.46
diff -u -r1.46 ChangeLog
--- current/ChangeLog 10 Dec 2003 12:09:24 -0000 1.46
+++ current/ChangeLog 21 Apr 2004 10:37:45 -0000
@@ -1,3 +1,8 @@
+2004-04-21 Oyvind Harboe <oyvind.harboe@zylin.com>
+
+ * include/machine/types.h: removed some types that
+ compat/linux now define
+
2003-12-10 Gary Thomas <gary@mlbassoc.com>
* include/netinet/in.h: Prototype for inet_ntoa_r()
Index: current/include/machine/types.h
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/tcpip/current/include/machine/types.h,v
retrieving revision 1.2
diff -u -r1.2 types.h
--- current/include/machine/types.h 20 May 2002 22:25:16 -0000 1.2
+++ current/include/machine/types.h 21 Apr 2004 10:37:47 -0000
@@ -38,15 +38,22 @@
#include <cyg/hal/hal_arch.h>
#define __BIT_TYPES_DEFINED__
+
+// For these definitions see also compat/linux/current/include/linux/types.h
typedef __signed char int8_t;
typedef unsigned char u_int8_t;
+#ifndef uint8_t
typedef unsigned char uint8_t;
+#endif
+#ifndef int16_t
typedef short int16_t;
+#endif
typedef unsigned short u_int16_t;
+#ifndef uint16_t
typedef unsigned short uint16_t;
+#endif
typedef int int32_t;
typedef unsigned int u_int32_t;
-typedef unsigned int uint32_t;
typedef long long int64_t;
typedef unsigned long long u_int64_t;
typedef unsigned long long uint64_t;