aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2004-04-16 03:50:04 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2004-04-16 03:50:04 +0000
commitcc52bf3428492355ef002c6ad21024f1473c0149 (patch)
tree011c71ac53e92c30a49f7c560670cdb723e821f0 /usr.bin
parentace2c466dc316acee28fe51173281a056ad51a2c (diff)
downloadsrc-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.c2
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,