diff options
author | sbruno <sbruno@FreeBSD.org> | 2008-12-12 18:17:23 +0000 |
---|---|---|
committer | sbruno <sbruno@FreeBSD.org> | 2008-12-12 18:17:23 +0000 |
commit | 1337c490053182fdd6a940432ea12a9980672bce (patch) | |
tree | b20979437c75737699737fcd8d2573c0b02472ea /usr.sbin/fwcontrol/fwmpegts.c | |
parent | 5daaed583238a77f324b6e4c6d93c03ca63b31df (diff) | |
download | FreeBSD-src-1337c490053182fdd6a940432ea12a9980672bce.zip FreeBSD-src-1337c490053182fdd6a940432ea12a9980672bce.tar.gz |
Reviewed by: (Dieter)freebsd@sopwith.solgatos.com
Approved by: slong scottl@samsco.org
MFC after: 2 weeks
Final cleanup of fwcontrol.
NetBSD compatibility
Cleanup errors in usage() display
Finish up error handling via errx/warnx
Generate error on unparsed command line syntax
Change device(devbase) to open into the form /dev/fwX.X
Diffstat (limited to 'usr.sbin/fwcontrol/fwmpegts.c')
-rw-r--r-- | usr.sbin/fwcontrol/fwmpegts.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/fwcontrol/fwmpegts.c b/usr.sbin/fwcontrol/fwmpegts.c index 4ad8432..d485819 100644 --- a/usr.sbin/fwcontrol/fwmpegts.c +++ b/usr.sbin/fwcontrol/fwmpegts.c @@ -52,8 +52,16 @@ #include <string.h> #include <sysexits.h> +#if defined(__FreeBSD__) #include <dev/firewire/firewire.h> #include <dev/firewire/iec68113.h> +#elif defined(__NetBSD__) +#include <dev/ieee1394/firewire.h> +#include <dev/ieee1394/iec68113.h> +#else +#warning "You need to add support for your OS" +#endif + #include "fwmethods.h" |