summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2009-08-05 21:27:09 +0000
committerTill Straumann <strauman@slac.stanford.edu>2009-08-05 21:27:09 +0000
commit325ddf3adc84334da3b024eb70f9e748891be17a (patch)
treebd3960b7a2a88b68f5b61e4a2a6a1613bd5b19de
parent31d56d93c8e0fd4c9a7fdbc5c43c5be172bae273 (diff)
downloadlibbsdport-325ddf3adc84334da3b024eb70f9e748891be17a.tar.bz2
2009-08-05 Till Straumann <Till.Straumann@TU-Berlin.de>
* libbsdport/libbsdport.h: define _KERNEL only if not defined already (e.g., from Makefile).
-rw-r--r--bsd_eth_drivers/ChangeLog4
-rw-r--r--bsd_eth_drivers/libbsdport/libbsdport.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/bsd_eth_drivers/ChangeLog b/bsd_eth_drivers/ChangeLog
index 337dd89..eafed6c 100644
--- a/bsd_eth_drivers/ChangeLog
+++ b/bsd_eth_drivers/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-05 Till Straumann <Till.Straumann@TU-Berlin.de>
+ * libbsdport/libbsdport.h: define _KERNEL only if not defined already
+ (e.g., from Makefile).
+
2009-06-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libbsdport/alldrv.c, libbsdport/libbsdport_api.h: Add include
diff --git a/bsd_eth_drivers/libbsdport/libbsdport.h b/bsd_eth_drivers/libbsdport/libbsdport.h
index cb233bb..4f0bbf8 100644
--- a/bsd_eth_drivers/libbsdport/libbsdport.h
+++ b/bsd_eth_drivers/libbsdport/libbsdport.h
@@ -4,7 +4,9 @@
#include <rtems.h>
#include <sys/param.h>
+#ifndef _KERNEL
#define _KERNEL
+#endif
#include <rtems/rtems_bsdnet.h>
#include <rtems/rtems_bsdnet_internal.h>