mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-24 00:39:54 +08:00
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.
This commit is contained in:
parent
2b640ee8fb
commit
e0b40b0aa2
@ -38,6 +38,8 @@
|
|||||||
#ifdef __rtems__
|
#ifdef __rtems__
|
||||||
#define __BSD_VISIBLE 1
|
#define __BSD_VISIBLE 1
|
||||||
#include <freebsd/sys/types.h>
|
#include <freebsd/sys/types.h>
|
||||||
|
|
||||||
|
#define rt_tables netstat_rt_tables
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int Aflag; /* show addresses of protocol control block */
|
extern int Aflag; /* show addresses of protocol control block */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user