From 8371e71458dcaa2126be0b30ce531d99670fc3d4 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 23 Feb 2004 04:17:59 +0000 Subject: Try to better mimic GNU getopt.h which does not assume to make visible all unistd.h functions, use _GETOPT_DECLARE define for that. --- include/unistd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/unistd.h') diff --git a/include/unistd.h b/include/unistd.h index 6a441dd..8901f93 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -371,10 +371,13 @@ ssize_t write(int, const void *, size_t); /* 1003.2-1992 */ #if __POSIX_VISIBLE >= 199209 || __XSI_VISIBLE size_t confstr(int, char *, size_t); +#ifndef _GETOPT_DECLARED +#define _GETOPT_DECLARED int getopt(int, char * const [], const char *); extern char *optarg; /* getopt(3) external variables */ extern int optind, opterr, optopt; +#endif /* _GETOPT_DECLARED */ #endif /* ISO/IEC 9945-1: 1996 */ -- cgit v1.1