changeset 626:e25c7433fc55

Make syntheth compatible with lwip
author bartv
date Thu, 13 Feb 2003 22:22:03 +0000
parents edfa9000e66d
children c54eb3732b41
files packages/devs/eth/synth/ecosynth/current/ChangeLog packages/devs/eth/synth/ecosynth/current/cdl/syntheth.cdl packages/devs/eth/synth/ecosynth/current/src/syntheth.c
diffstat 3 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/devs/eth/synth/ecosynth/current/ChangeLog
+++ b/packages/devs/eth/synth/ecosynth/current/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-13  Bart Veer  <bartv@ecoscentric.com>
+
+	* src/syntheth.c, cdl/syntheth.cdl: add dependency on errno.h for
+	error codes, and avoid memset() warning
+
 2003-02-12  Bart Veer  <bartv@ecoscentric.com>
 
 	* host/Makefile.in, host/configure:
--- a/packages/devs/eth/synth/ecosynth/current/cdl/syntheth.cdl
+++ b/packages/devs/eth/synth/ecosynth/current/cdl/syntheth.cdl
@@ -8,7 +8,7 @@
 #####ECOSGPLCOPYRIGHTBEGIN####
 ## -------------------------------------------
 ## This file is part of eCos, the Embedded Configurable Operating System.
-## Copyright (C) 2002 Bart Veer
+## Copyright (C) 2002, 2003 Bart Veer
 ##
 ## eCos is free software; you can redistribute it and/or modify it under
 ## the terms of the GNU General Public License as published by the Free
@@ -114,6 +114,7 @@ cdl_package CYGPKG_DEVS_ETH_ECOSYNTH {
 	active_if   { CYGVAR_DEVS_ETH_ECOSYNTH_ETH0 || CYGVAR_DEVS_ETH_ECOSYNTH_ETH1 || CYGVAR_DEVS_ETH_ECOSYNTH_ETH2 || CYGVAR_DEVS_ETH_ECOSYNTH_ETH3 }
 	flavor      none
 	compile     -library=libextras.a syntheth.c
+	requires    CYGINT_ISO_ERRNO_CODES CYGINT_ISO_STRING_MEMFUNCS
 	description "
 	    Package-specific build options including control over compiler
 	    flags used only in building this package."
--- a/packages/devs/eth/synth/ecosynth/current/src/syntheth.c
+++ b/packages/devs/eth/synth/ecosynth/current/src/syntheth.c
@@ -8,7 +8,7 @@
 //####ECOSGPLCOPYRIGHTBEGIN####
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
-// Copyright (C) 2002 Bart Veer
+// Copyright (C) 2002, 2003 Bart Veer
 //
 // eCos is free software; you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free
@@ -54,6 +54,8 @@
 #include <cyg/hal/hal_arch.h>
 #include <cyg/infra/diag.h>
 #include <cyg/hal/drv_api.h>
+#include <errno.h>
+#include <string.h>
 
 #define __ECOS 1
 #include <sys/types.h>