This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
IO/ETH: Fix NBPFILTER warnings
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: 23 Jul 2003 19:02:53 +0100
- Subject: IO/ETH: Fix NBPFILTER warnings
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/eth/current/ChangeLog,v
retrieving revision 1.43
diff -u -5 -r1.43 ChangeLog
--- ChangeLog 20 Mar 2003 15:44:39 -0000 1.43
+++ ChangeLog 23 Jul 2003 18:00:56 -0000
@@ -1,5 +1,12 @@
+2003-07-23 Nick Garnett <nickg@balti.calivar.com>
+
+ * include/eth_drv.h:
+ * src/net/eth_drv.c:
+ Added an ifndef to fix warnings about NBPFILTER not being
+ defined.
+
2003-03-20 Mark Salter <msalter@redhat.com>
* cdl/eth_drivers.cdl (CYGHWR_NET_DRIVERS): Moved here from net/common.
2003-03-14 Nick Garnett <nickg@calivar.com>
Index: include/eth_drv.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/eth/current/include/eth_drv.h,v
retrieving revision 1.9
diff -u -5 -r1.9 eth_drv.h
--- include/eth_drv.h 11 Mar 2003 15:41:12 -0000 1.9
+++ include/eth_drv.h 23 Jul 2003 18:00:57 -0000
@@ -71,10 +71,14 @@
#include <netinet/in_var.h>
#include <netinet/ip.h>
#include <netinet/if_ether.h>
#endif
+#ifndef NBPFILTER
+#define NBPFILTER 0
+#endif
+
#if NBPFILTER > 0
#include <net/bpf.h>
#include <net/bpfdesc.h>
#endif
Index: src/net/eth_drv.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/eth/current/src/net/eth_drv.c,v
retrieving revision 1.27
diff -u -5 -r1.27 eth_drv.c
--- src/net/eth_drv.c 17 Mar 2003 18:37:21 -0000 1.27
+++ src/net/eth_drv.c 23 Jul 2003 18:00:59 -0000
@@ -71,10 +71,14 @@
#include <netinet/in_var.h>
#include <netinet/ip.h>
#include <netinet/if_ether.h>
#endif
+#ifndef NBPFILTER
+#define NBPFILTER 0
+#endif
+
#if NBPFILTER > 0
#include <net/bpf.h>
#include <net/bpfdesc.h>
#endif
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts