First version, development moved to 5110-connected machine
[gnokii.git] / getopt / getopt.c
index 7b4f938..01a8184 100644 (file)
@@ -121,6 +121,9 @@ int opterr = 1;
    This must be initialized on some systems to avoid linking in the
    system's own getopt implementation.  */
 
+#ifdef UCLINUX
+static
+#endif /* UCLINUX */
 int optopt = '?';
 
 /* Describe how to deal with options that follow non-option ARGV-elements.
@@ -666,6 +669,8 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
   }
 }
 
+#ifndef UCLINUX
+
 int
 getopt (argc, argv, optstring)
      int argc;
@@ -678,6 +683,8 @@ getopt (argc, argv, optstring)
                           0);
 }
 
+#endif /* UCLINUX */
+
 #endif /* _LIBC or not __GNU_LIBRARY__.  */
 \f
 #ifdef TEST