Fix getsubopt declaration.
* libc/include/sys/unistd.h (suboptarg, getsubopt): Move... * libc/include/stdlib.h: ...here, to match POSIX for getsubopt.
This commit is contained in:
parent
59cb363a5f
commit
b2e79f9800
|
@ -1,3 +1,8 @@
|
|||
2009-12-22 Eric Blake <ebb9@byu.net>
|
||||
|
||||
* libc/include/sys/unistd.h (suboptarg, getsubopt): Move...
|
||||
* libc/include/stdlib.h: ...here, to match POSIX for getsubopt.
|
||||
|
||||
2009-12-17 Jeff Johnston <jjohnstn@redhat.com>
|
||||
|
||||
* NEWS: Update with 1.18.0 info.
|
||||
|
|
|
@ -83,6 +83,10 @@ char * _EXFUN(getenv,(const char *__string));
|
|||
char * _EXFUN(_getenv_r,(struct _reent *, const char *__string));
|
||||
char * _EXFUN(_findenv,(_CONST char *, int *));
|
||||
char * _EXFUN(_findenv_r,(struct _reent *, _CONST char *, int *));
|
||||
#ifndef __STRICT_ANSI__
|
||||
extern char *suboptarg; /* getsubopt(3) external variable */
|
||||
int _EXFUN(getsubopt,(char **, char * const *, char **));
|
||||
#endif
|
||||
long _EXFUN(labs,(long));
|
||||
ldiv_t _EXFUN(ldiv,(long __numer, long __denom));
|
||||
_PTR _EXFUN_NOTHROW(malloc,(size_t __size));
|
||||
|
|
|
@ -191,9 +191,6 @@ extern int optreset; /* getopt(3) external variable */
|
|||
|
||||
#ifndef _POSIX_SOURCE
|
||||
pid_t _EXFUN(vfork, (void ));
|
||||
|
||||
extern char *suboptarg; /* getsubopt(3) external variable */
|
||||
int getsubopt(char **, char * const *, char **);
|
||||
#endif /* _POSIX_SOURCE */
|
||||
|
||||
#ifdef _COMPILING_NEWLIB
|
||||
|
|
Loading…
Reference in New Issue