Make pty.h match recent glibc.
* include/pty.h (openpty, forkpty): Mark last two arguments const, to match glibc 2.8. * libc/bsdlib.cc (openpty, forkpty): Likewise.
This commit is contained in:
@ -8,8 +8,10 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int _EXFUN(openpty ,(int *, int *, char *, struct termios *, struct winsize *));
|
||||
int _EXFUN(forkpty ,(int *, char *, struct termios *, struct winsize *));
|
||||
int _EXFUN(openpty ,(int *, int *, char *, const struct termios *,
|
||||
const struct winsize *));
|
||||
int _EXFUN(forkpty ,(int *, char *, const struct termios *,
|
||||
const struct winsize *));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user