X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=getopt%2Fgetopt.c;h=01a8184d01dc933d47becc57d92795176f68c38c;hp=7b4f938491265c6314d071b78f2c5acd3abe62fb;hb=81b1712d54efa46b3148a5beb42d32d7632ef30c;hpb=833e1c7c90e13ceaba3dde8e7a36fcc8dfb1db3c diff --git a/getopt/getopt.c b/getopt/getopt.c index 7b4f938..01a8184 100644 --- a/getopt/getopt.c +++ b/getopt/getopt.c @@ -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__. */ #ifdef TEST