[rtems-libbsd commit] Add BDS command support headers.

Chris Johns chrisj at rtems.org
Tue Jun 16 03:21:14 UTC 2015


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

Author:    Chris Johns <chrisj at rtems.org>
Date:      Tue Jun 16 13:20:15 2015 +1000

Add BDS command support headers.

---

 freebsd/contrib/tcpdump/tcpdump.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/freebsd/contrib/tcpdump/tcpdump.c b/freebsd/contrib/tcpdump/tcpdump.c
index 32ffb45..00e44db 100644
--- a/freebsd/contrib/tcpdump/tcpdump.c
+++ b/freebsd/contrib/tcpdump/tcpdump.c
@@ -55,6 +55,8 @@ static const char rcsid[] _U_ =
 #define __need_getopt_newlib
 #include <getopt.h>
 #define setpriority(a, b, c)
+#include <machine/rtems-bsd-program.h>
+#include <machine/rtems-bsd-commands.h>
 #endif
 
 #include <tcpdump-stdinc.h>
@@ -357,7 +359,7 @@ static const struct ndo_printer ndo_printers[] = {
 if_printer
 lookup_printer(int type)
 {
-	struct printer *p;
+	const struct printer *p;
 
 	for (p = printers; p->f; ++p)
 		if (type == p->type)
@@ -370,7 +372,7 @@ lookup_printer(int type)
 if_ndo_printer
 lookup_ndo_printer(int type)
 {
-	struct ndo_printer *p;
+	const struct ndo_printer *p;
 
 	for (p = ndo_printers; p->f; ++p)
 		if (type == p->type)




More information about the vc mailing list