diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2004-02-23 04:17:59 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2004-02-23 04:17:59 +0000 |
commit | 1919b885d0de73cbbe7044f942a187db51053956 (patch) | |
tree | cd7baefba243e3b75e194c3f0f399ea2a4e66332 /include/unistd.h | |
parent | 3f52a8ab5590d8221f5274fcebc31aaf5bdf6946 (diff) | |
download | src-1919b885d0de73cbbe7044f942a187db51053956.tar.gz src-1919b885d0de73cbbe7044f942a187db51053956.zip |
Try to better mimic GNU getopt.h which does not assume to make visible
all unistd.h functions, use _GETOPT_DECLARE define for that.
Notes
Notes:
svn path=/head/; revision=126141
Diffstat (limited to 'include/unistd.h')
-rw-r--r-- | include/unistd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h index 6a441dd62af2..8901f935cac5 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 */ |