From 484ec180f193f485c447759f9d6e5deac55b070c Mon Sep 17 00:00:00 2001 From: kientzle Date: Fri, 16 Apr 2004 03:50:04 +0000 Subject: --help is only supported if you have getopt_long(). This allows bsdtar to compile on FreeBSD 4.x. --- usr.bin/tar/bsdtar.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.bin') 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, -- cgit v1.1