diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-22 10:04:33 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-31 13:18:49 +0100 |
commit | 56e9de90c7c08a41cf876eeca61d37028e86f5b7 (patch) | |
tree | 246e89bf7c11d385c7c5c799864323ff293c42b3 | |
parent | IFCONFIG(8): Fix some resource leaks (diff) | |
download | rtems-libbsd-56e9de90c7c08a41cf876eeca61d37028e86f5b7.tar.bz2 |
IFCONFIG(8): Wrap exit()
-rw-r--r-- | freebsd/sbin/ifconfig/ifclone.c | 3 | ||||
-rw-r--r-- | freebsd/sbin/ifconfig/ifgroup.c | 3 |
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> |