summaryrefslogtreecommitdiffstats
path: root/libc/include/getopt.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-10-09 17:56:55 +0200
committerDavid 'Digit' Turner <digit@google.com>2010-10-09 17:56:55 +0200
commitbb5581ad6eec40041dab4e961149f7a8a3a83497 (patch)
tree5e8c1e583da643c37143adff205c6d794a0850c5 /libc/include/getopt.h
parentaf00228b705b53165c132a22b30c2d6cbb9acd13 (diff)
downloadbionic-bb5581ad6eec40041dab4e961149f7a8a3a83497.zip
bionic-bb5581ad6eec40041dab4e961149f7a8a3a83497.tar.gz
bionic-bb5581ad6eec40041dab4e961149f7a8a3a83497.tar.bz2
libc: tag missing functions in system headers.
This matches recent changes in the NDK header. We enclose missing functions in #if 0 .. #endif blocks with a clear "MISSING" in comments in order to locate them later. Change-Id: I87b3a62e777897e75c9243360fb0a82bcc53d9fb
Diffstat (limited to 'libc/include/getopt.h')
-rw-r--r--libc/include/getopt.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libc/include/getopt.h b/libc/include/getopt.h
index 6b4954b..56f1983 100644
--- a/libc/include/getopt.h
+++ b/libc/include/getopt.h
@@ -71,14 +71,19 @@ int getopt_long_only(int, char * const *, const char *,
#ifndef _GETOPT_DEFINED_
#define _GETOPT_DEFINED_
int getopt(int, char * const *, const char *);
-int getsubopt(char **, char * const *, char **);
+
extern char *optarg; /* getopt(3) external variables */
extern int opterr;
extern int optind;
extern int optopt;
extern int optreset;
+
+#if 0 /* MISSING FROM BIONIC */
+int getsubopt(char **, char * const *, char **);
extern char *suboptarg; /* getsubopt(3) external variable */
+#endif /* MISSING */
+
#endif
__END_DECLS