]> granicus.if.org Git - file/commitdiff
fix mygetopt.h handling.
authorChristos Zoulas <christos@zoulas.com>
Wed, 15 Jul 2009 14:08:23 +0000 (14:08 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 15 Jul 2009 14:08:23 +0000 (14:08 +0000)
src/file.c

index 91a5b416a352b0c705815300f1cc9813be0442eb..0f2360398ccc25b5c7de56342f87b75cf0746693 100644 (file)
@@ -32,7 +32,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: file.c,v 1.130 2009/02/03 20:27:51 christos Exp $")
+FILE_RCSID("@(#)$File: file.c,v 1.131 2009/02/13 18:48:05 christos Exp $")
 #endif /* lint */
 
 #include "magic.h"
@@ -63,14 +63,12 @@ FILE_RCSID("@(#)$File: file.c,v 1.130 2009/02/03 20:27:51 christos Exp $")
 
 #if defined(HAVE_GETOPT_H) && defined(HAVE_STRUCT_OPTION)
 #include <getopt.h>
-#else
-#include "mygetopt.h"
-#endif
 #ifndef HAVE_GETOPT_LONG
 int getopt_long(int argc, char * const *argv, const char *optstring, const struct option *longopts, int *longindex);
 #endif
-
-#include <netinet/in.h>                /* for byte swapping */
+#else
+#include "mygetopt.h"
+#endif
 
 #include "patchlevel.h"