git://git.jankratochvil.net
/
gnokii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Not yet working stack checking (symbol STACKCHECK)
[gnokii.git]
/
getopt
/
getopt.c
diff --git
a/getopt/getopt.c
b/getopt/getopt.c
index
7b4f938
..
01a8184
100644
(file)
--- 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. */
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.
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;
int
getopt (argc, argv, optstring)
int argc;
@@
-678,6
+683,8
@@
getopt (argc, argv, optstring)
0);
}
0);
}
+#endif /* UCLINUX */
+
#endif /* _LIBC or not __GNU_LIBRARY__. */
\f
#ifdef TEST
#endif /* _LIBC or not __GNU_LIBRARY__. */
\f
#ifdef TEST