From bb5581ad6eec40041dab4e961149f7a8a3a83497 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Sat, 9 Oct 2010 17:56:55 +0200 Subject: 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 --- libc/include/getopt.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libc/include/getopt.h') 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 -- cgit v1.1