From: Christos Zoulas Date: Wed, 3 Mar 2004 17:21:05 +0000 (+0000) Subject: disable help messages if we don't have getopt_long X-Git-Tag: FILE5_05~901 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4598119fd10ea157c43ecc60e0d62b62223f3a1c;p=file disable help messages if we don't have getopt_long --- diff --git a/src/file.c b/src/file.c index c6d6c406..007c2b7d 100644 --- a/src/file.c +++ b/src/file.c @@ -72,7 +72,7 @@ #include "patchlevel.h" #ifndef lint -FILE_RCSID("@(#)$Id: file.c,v 1.88 2003/12/23 17:32:41 christos Exp $") +FILE_RCSID("@(#)$Id: file.c,v 1.89 2004/03/03 17:21:05 christos Exp $") #endif /* lint */ @@ -103,7 +103,7 @@ private struct magic_set *magic; private void unwrap(char *); private void usage(void); -#ifdef HAVE_GETOPT_H +#ifdef HAVE_GETOPT_LONG private void help(void); #endif #if 0 @@ -449,13 +449,13 @@ private void usage(void) { (void)fprintf(stderr, USAGE, progname, progname); -#ifdef HAVE_GETOPT_H +#ifdef HAVE_GETOPT_LONG (void)fputs("Try `file --help' for more information.\n", stderr); #endif exit(1); } -#ifdef HAVE_GETOPT_H +#ifdef HAVE_GETOPT_LONG private void help(void) {