From 4610a13b765dcf1ee612334de2922e5d5bfb0d9c Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Tue, 20 Oct 2009 23:46:58 +0000 Subject: 2009-10-20 Till Straumann * libbsdport/libbsdport.h, if_em/e1000_osdep.h: We need __BSD_VISIBLE defined. Some things in the rtems headers changed with 4.10 (can't pinpoint the details). We now #define __INSIDE_RTEMS_BSD_TCPIP_STACK__ before explicitly including and this seemed to fix things for 4.10. --- bsd_eth_drivers/ChangeLog | 9 +++++++++ bsd_eth_drivers/if_em/e1000_osdep.h | 4 ++++ bsd_eth_drivers/libbsdport/libbsdport.h | 7 ++++++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/bsd_eth_drivers/ChangeLog b/bsd_eth_drivers/ChangeLog index d0b2992..6409324 100644 --- a/bsd_eth_drivers/ChangeLog +++ b/bsd_eth_drivers/ChangeLog @@ -1,3 +1,12 @@ +2009-10-20 Till Straumann + + * libbsdport/libbsdport.h, if_em/e1000_osdep.h: + We need __BSD_VISIBLE defined. Some things in the rtems headers + changed with 4.10 (can't pinpoint the details). We now + #define __INSIDE_RTEMS_BSD_TCPIP_STACK__ before explicitly + including and this seemed to fix + things for 4.10. + 2009-10-20 Till Straumann * libbsdport/libbsdport_post.h: added missing declaration diff --git a/bsd_eth_drivers/if_em/e1000_osdep.h b/bsd_eth_drivers/if_em/e1000_osdep.h index 447bdff..96a7d84 100644 --- a/bsd_eth_drivers/if_em/e1000_osdep.h +++ b/bsd_eth_drivers/if_em/e1000_osdep.h @@ -42,6 +42,10 @@ POSSIBILITY OF SUCH DAMAGE. #include /* for non-_KERNEL boolean_t :-( */ #ifdef _KERNEL +#ifndef __INSIDE_RTEMS_BSD_TCPIP_STACK__ +#define __INSIDE_RTEMS_BSD_TCPIP_STACK__ +#endif +#include #include #include diff --git a/bsd_eth_drivers/libbsdport/libbsdport.h b/bsd_eth_drivers/libbsdport/libbsdport.h index de6eb9b..24d8da7 100644 --- a/bsd_eth_drivers/libbsdport/libbsdport.h +++ b/bsd_eth_drivers/libbsdport/libbsdport.h @@ -2,14 +2,19 @@ #define RTEMS_COMPAT_DEFS_H #include -#include #ifndef _KERNEL #define _KERNEL #endif +#ifndef __INSIDE_RTEMS_BSD_TCPIP_STACK__ +#define __INSIDE_RTEMS_BSD_TCPIP_STACK__ +#endif + #include #include +#include + #include #include -- cgit v1.2.3