This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

getproto & getserv compilation fix...


Hi
I don't know wheter this is the right fix but unless errno is included
from netdb or param these two files don't compile
I might have had to configure ecos.ecc after making it though ...

#ecosconfig check 
Target: edb7xxx
Template: default
Added:
 CYGPKG_NET_FREEBSD_STACK
 CYGPKG_IO_FILEIO
 CYGPKG_IO_ETH_DRIVERS
 CYGPKG_NET
 CYGPKG_POSIX
No conflicts 

Index: getproto.c
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/common/current/src/getproto.c,v
retrieving revision 1.1
diff -u -r1.1 getproto.c
--- getproto.c	20 May 2002 22:25:05 -0000	1.1
+++ getproto.c	5 Jun 2002 22:17:08 -0000
@@ -31,6 +31,7 @@
 
 #include <sys/param.h>
 #include <netdb.h>
+#include <errno.h>
 
 static struct protoent protocols[] = {
     { "ip",         0}, // internet protocol, pseudo protocol number
Index: getserv.c
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/common/current/src/getserv.c,v
retrieving revision 1.1
diff -u -r1.1 getserv.c
--- getserv.c	20 May 2002 22:25:05 -0000	1.1
+++ getserv.c	5 Jun 2002 22:17:08 -0000
@@ -32,6 +32,7 @@
 
 #include <sys/param.h>
 #include <netdb.h>
+#include <errno.h>
 
 // These must return the port in network byte order.
 //


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]