This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Fix CYGPKG_NET build
- From: Iztok Zupet <iz at vsr dot si>
- To: ecos-patches at sources dot redhat dot com
- Date: Mon, 8 Jul 2002 21:59:02 +0200
- Subject: Fix CYGPKG_NET build
- Organization: VSR d.o.o.
- Reply-to: iz at vsr dot si
Corrects the "errno undefined" error when building network support
diff -C2 -N -P -r -x '.*' /ecoscvs/orig/ecos/packages/net/common/current/src/getproto.c ./net/common/current/src/getproto.c
*** /ecoscvs/orig/ecos/packages/net/common/current/src/getproto.c Tue May 21 00:25:05 2002
--- ./net/common/current/src/getproto.c Mon Jul 8 21:11:31 2002
***************
*** 32,35 ****
--- 32,36 ----
#include <sys/param.h>
#include <netdb.h>
+ #include <cyg/error/errno.h>
static struct protoent protocols[] = {
diff -C2 -N -P -r -x '.*' /ecoscvs/orig/ecos/packages/net/common/current/src/getserv.c ./net/common/current/src/getserv.c
*** /ecoscvs/orig/ecos/packages/net/common/current/src/getserv.c Tue May 21 00:25:05 2002
--- ./net/common/current/src/getserv.c Mon Jul 8 21:11:19 2002
***************
*** 33,36 ****
--- 33,37 ----
#include <sys/param.h>
#include <netdb.h>
+ #include <cyg/error/errno.h>
// These must return the port in network byte order.