Index: gdomap.c
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/base/Tools/gdomap.c,v
retrieving revision 1.75
diff -u -d -b -w -r1.75 gdomap.c
--- gdomap.c	2 Sep 2003 02:44:15 -0000	1.75
+++ gdomap.c	19 Sep 2003 18:21:41 -0000
@@ -177,76 +177,6 @@
   int num_extras, struct in_addr* extra, int is_reply);
 
 
-#ifdef __MINGW__
-
-/* A simple implementation of getopt() */
-
-static int
-indexof(char c, char *string)
-{
-  int i;
-
-  for (i = 0; i < strlen(string); i++)
-    {
-      if (string[i] == c)
-	{
-	  return i;
-	}
-    }
-  return -1;
-}
-
-static char *optarg;
-
-static char
-getopt(int argc, char **argv, char *options)
-{
-  static int	argi;
-  static char	*arg;
-  int		index;
-  char		retval = '\0';
-
-  optarg = NULL;
-  if (argi == 0)
-    {
-      argi = 1;
-    }
-  while (argi < argc)
-    {
-      arg = argv[argi];
-      if (strlen(arg) == 2)
-	{
-	  if (arg[0] == '-')
-	    {
-	      if ((index = indexof(arg[1], options)) != -1)
-		{
-		  retval = arg[1];
-		  if (index < strlen(options))
-		    {
-		      if (options[index+1] == ':')
-			{
-			  if (argi < argc-1)
-			    {
-			      argi++;
-			      optarg = argv[argi];
-			    }
-			  else
-			    {
-			      return -1; /* ':' given, but argv exhausted */
-			    }
-			}
-		    }
-		}
-	    }
-	}
-      argi++;
-      return retval;
-    }
-  return -1;
-}
-#endif
-
-
 static char	ebuf[2048];
 
 
