diff options
author | Tim Kientzle <kientzle@FreeBSD.org> | 2004-04-16 03:50:04 +0000 |
---|---|---|
committer | Tim Kientzle <kientzle@FreeBSD.org> | 2004-04-16 03:50:04 +0000 |
commit | cc52bf3428492355ef002c6ad21024f1473c0149 (patch) | |
tree | 011c71ac53e92c30a49f7c560670cdb723e821f0 /usr.bin | |
parent | ace2c466dc316acee28fe51173281a056ad51a2c (diff) | |
download | src-cc52bf3428492355ef002c6ad21024f1473c0149.tar.gz src-cc52bf3428492355ef002c6ad21024f1473c0149.zip |
--help is only supported if you have getopt_long().
This allows bsdtar to compile on FreeBSD 4.x.
Notes
Notes:
svn path=/head/; revision=128298
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tar/bsdtar.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/tar/bsdtar.c b/usr.bin/tar/bsdtar.c index dcdafffc9dad..171dcde5ebc9 100644 --- a/usr.bin/tar/bsdtar.c +++ b/usr.bin/tar/bsdtar.c @@ -207,9 +207,11 @@ main(int argc, char **argv) case 'h': /* Linux LSB for 'tar'; synonym for -H */ bsdtar->symlink_mode = 'H'; break; +#ifdef HAVE_GETOPT_LONG case OPTION_HELP: long_help(); break; +#endif case 'j': /* GNU tar */ if (bsdtar->create_compression != '\0') bsdtar_errc(1, 0, |