summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-04-16 03:50:04 +0000
committerkientzle <kientzle@FreeBSD.org>2004-04-16 03:50:04 +0000
commit484ec180f193f485c447759f9d6e5deac55b070c (patch)
tree011c71ac53e92c30a49f7c560670cdb723e821f0 /usr.bin
parentc4d18d39a4f98928920f201d8d4ed05f43bd33e7 (diff)
downloadFreeBSD-src-484ec180f193f485c447759f9d6e5deac55b070c.zip
FreeBSD-src-484ec180f193f485c447759f9d6e5deac55b070c.tar.gz
--help is only supported if you have getopt_long().
This allows bsdtar to compile on FreeBSD 4.x.
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 dcdafff..171dcde 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,
OpenPOWER on IntegriCloud