changeset 1126:b56e22bed6a2

* include/eth_drv.h: * src/net/eth_drv.c: Added an ifndef to fix warnings about NBPFILTER not being defined.
author nickg
date Wed, 23 Jul 2003 18:01:22 +0000
parents 7d37ed23acc4
children 9ddd6c4d040b
files packages/io/eth/current/ChangeLog packages/io/eth/current/include/eth_drv.h packages/io/eth/current/src/net/eth_drv.c
diffstat 3 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/eth/current/ChangeLog
+++ b/packages/io/eth/current/ChangeLog
@@ -1,3 +1,10 @@
+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.
--- a/packages/io/eth/current/include/eth_drv.h
+++ b/packages/io/eth/current/include/eth_drv.h
@@ -73,6 +73,10 @@
 #include <netinet/if_ether.h>
 #endif
 
+#ifndef NBPFILTER
+#define NBPFILTER 0
+#endif
+
 #if NBPFILTER > 0
 #include <net/bpf.h>
 #include <net/bpfdesc.h>
--- a/packages/io/eth/current/src/net/eth_drv.c
+++ b/packages/io/eth/current/src/net/eth_drv.c
@@ -73,6 +73,10 @@
 #include <netinet/if_ether.h>
 #endif
 
+#ifndef NBPFILTER
+#define NBPFILTER 0
+#endif
+
 #if NBPFILTER > 0
 #include <net/bpf.h>
 #include <net/bpfdesc.h>