disable help messages if we don't have getopt_long
authorChristos Zoulas <christos@zoulas.com>
Wed, 3 Mar 2004 17:21:05 +0000 (17:21 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 3 Mar 2004 17:21:05 +0000 (17:21 +0000)
src/file.c

index c6d6c406baa4d0cc2bb118ea91503a3462bbf28f..007c2b7dcbee6fc81218a707899e3e208d8b94cd 100644 (file)
@@ -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)
 {