Browse files

Fix link errors on getopt variables.

Cygwin seems to complain these days for me about optind, optarg
and optopt not being declared properly. So I've commented out
their extern declarations. Seems to work...
  • Loading branch information...
wesleyd committed Sep 30, 2010
1 parent 1b0bbdf commit 989e64041d8c2f2c8720d211cf3b7fd9407d8d65
Showing with 5 additions and 0 deletions.
  1. +5 −0 cmdline.c
@@ -45,8 +45,13 @@ void
parse_cmdline(int argc, char **argv)
int ch;
+ /* I seem to get link errors when I declare these getopt variables.
+ Things seem to work fine when I don't declare them, so I'm
+ just commenting them out!
extern int optind, opterr;
extern char *optarg;
+ */
while (-1 != (ch = getopt_long(argc, argv, "cskdva:", opts, NULL))) {
switch (ch) {

0 comments on commit 989e640

Please sign in to comment.