]> sjero.net Git - wget/blobdiff - src/main.c
Remove original getopt.[ch] in favor of gnulib's.
[wget] / src / main.c
index 8df7a36124b6b9f07cb3babcead8af160d58d136..43889c5f1098e410dd62eb2157e00aed248a7372 100644 (file)
@@ -55,8 +55,7 @@ so, delete this exception statement from your version.  */
 #include "spider.h"
 #include "http.h"               /* for save_cookies */
 
-/* On GNU system this will include system-wide getopt.h. */
-#include "getopt.h"
+#include <getopt.h>
 
 #ifndef PATH_SEPARATOR
 # define PATH_SEPARATOR '/'
@@ -708,7 +707,7 @@ main (int argc, char *const *argv)
 
 #ifdef WINDOWS
   /* Drop extension (typically .EXE) from executable filename. */
-  windows_main (&argc, (char **) argv, (char **) &exec_name);
+  windows_main ((char **) &exec_name);
 #endif
 
   /* Set option defaults; read the system wgetrc and ~/.wgetrc.  */