[rtems-libbsd commit] netstat/netstat.h: Add macro so rt_tables is in private namespace

Joel Sherrill joel at rtems.org
Thu Oct 25 13:59:17 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    e0b40b0aa27a7d4a9f3ac6ac5237342e8b98cb98
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=e0b40b0aa27a7d4a9f3ac6ac5237342e8b98cb98

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Thu Oct 25 09:02:38 2012 -0500

netstat/netstat.h: Add macro so rt_tables is in private namespace

Otherwise this conflicts with the rt_tables in the kernel and
kvm can't work.

---

 .../commands/usr.bin/netstat/netstat.h             |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/freebsd-userspace/commands/usr.bin/netstat/netstat.h b/freebsd-userspace/commands/usr.bin/netstat/netstat.h
index 30d84f0..c7564c6 100644
--- a/freebsd-userspace/commands/usr.bin/netstat/netstat.h
+++ b/freebsd-userspace/commands/usr.bin/netstat/netstat.h
@@ -38,6 +38,8 @@
 #ifdef __rtems__
 #define __BSD_VISIBLE 1
 #include <freebsd/sys/types.h>
+
+#define rt_tables netstat_rt_tables
 #endif
 
 extern int	Aflag;	/* show addresses of protocol control block */




More information about the vc mailing list