summaryrefslogtreecommitdiffstats
path: root/freebsd/sbin/ifconfig
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-22 10:04:33 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-31 13:18:49 +0100
commit56e9de90c7c08a41cf876eeca61d37028e86f5b7 (patch)
tree246e89bf7c11d385c7c5c799864323ff293c42b3 /freebsd/sbin/ifconfig
parentIFCONFIG(8): Fix some resource leaks (diff)
downloadrtems-libbsd-56e9de90c7c08a41cf876eeca61d37028e86f5b7.tar.bz2
IFCONFIG(8): Wrap exit()
Diffstat (limited to 'freebsd/sbin/ifconfig')
-rw-r--r--freebsd/sbin/ifconfig/ifclone.c3
-rw-r--r--freebsd/sbin/ifconfig/ifgroup.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/freebsd/sbin/ifconfig/ifclone.c b/freebsd/sbin/ifconfig/ifclone.c
index 2de84c34..6b129832 100644
--- a/freebsd/sbin/ifconfig/ifclone.c
+++ b/freebsd/sbin/ifconfig/ifclone.c
@@ -32,6 +32,9 @@ static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
+#ifdef __rtems__
+#include <machine/rtems-bsd-program.h>
+#endif /* __rtems__ */
#include <sys/queue.h>
#include <rtems/bsd/sys/types.h>
#include <sys/ioctl.h>
diff --git a/freebsd/sbin/ifconfig/ifgroup.c b/freebsd/sbin/ifconfig/ifgroup.c
index d83eed5a..488d3d1a 100644
--- a/freebsd/sbin/ifconfig/ifgroup.c
+++ b/freebsd/sbin/ifconfig/ifgroup.c
@@ -28,6 +28,9 @@ static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
+#ifdef __rtems__
+#include <machine/rtems-bsd-program.h>
+#endif /* __rtems__ */
#include <rtems/bsd/sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>