This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
host-side infra clean-up
- From: Bart Veer <bartv at ecoscentric dot com>
- To: ecos-patches at sourceware dot org
- Date: Thu, 14 Aug 2008 22:42:52 +0100
- Subject: host-side infra clean-up
Get the host-side infra building with current gcc.
Bart
2008-08-14 Bart Veer <bartv@ecoscentric.com>
* assert.cxx: fix build problems with recent gcc
Index: assert.cxx
===================================================================
RCS file: /cvs/ecos/ecos/host/infra/assert.cxx,v
retrieving revision 1.4
diff -u -p -r1.4 assert.cxx
--- assert.cxx 11 Aug 2002 21:42:03 -0000 1.4
+++ assert.cxx 14 Aug 2008 21:41:07 -0000
@@ -59,8 +59,10 @@
// STDIO is needed for the default assertion handler.
// STDLIB is needed for exit() and the status codes.
+// STRING is needed for strcpy()
#include <cstdio>
#include <cstdlib>
+#include <cstring>
#if defined(__unix__) || defined(__CYGWIN32__)
extern "C" {