]> 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 34aa44c854a45a670352881c7cbc3851ec592a16..aff78108cebb34f67f29545b74a79eb496c87ee7 100644 (file)
@@ -32,7 +32,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: file.c,v 1.131 2009/02/13 18:48:05 christos Exp $")
+FILE_RCSID("@(#)$File: file.c,v 1.132 2009/07/15 14:08:23 christos Exp $")
 #endif /* lint */
 
 #include "magic.h"
@@ -63,14 +63,12 @@ FILE_RCSID("@(#)$File: file.c,v 1.131 2009/02/13 18:48:05 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"