diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2004-02-23 03:16:59 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2004-02-23 03:16:59 +0000 |
commit | 8720578d06e298f65f736cbe66c98a309b86325f (patch) | |
tree | 9e72c18e9e3a3be5334f24aaff60ba194712cc6b /include/stdlib.h | |
parent | 2c840b1f6524ad18deda3045605713f430a3da8f (diff) | |
download | src-test2-8720578d06e298f65f736cbe66c98a309b86325f.tar.gz src-test2-8720578d06e298f65f736cbe66c98a309b86325f.zip |
POSIX clearly states that getsubopt() should be declared in <stdlib.h>,
not in <unistd.h>
Notes
Notes:
svn path=/head/; revision=126136
Diffstat (limited to 'include/stdlib.h')
-rw-r--r-- | include/stdlib.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 23e64090b2d2..f94e7ab82c58 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -177,10 +177,7 @@ double drand48(void); double erand48(unsigned short[3]); /* char *fcvt(double, int, int * __restrict, int * __restrict); */ /* char *gcvt(double, int, int * __restrict, int * __restrict); */ -#ifndef _GETSUBOPT_DECLARED int getsubopt(char **, char *const *, char **); -#define _GETSUBOPT_DECLARED -#endif int grantpt(int); char *initstate(unsigned long /* XSI requires u_int */, char *, long); long jrand48(unsigned short[3]); @@ -277,6 +274,8 @@ __int64_t strtoq(const char *, char **, int); __uint64_t strtouq(const char *, char **, int); + +extern char *suboptarg; /* getsubopt(3) external variable */ #endif /* __BSD_VISIBLE */ __END_DECLS |