Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2009-12-26 09:20:56 +0300
committerEric Blake <eblake@redhat.com>2009-12-26 09:20:56 +0300
commit1c0a4c3a8e679dbc8238d03b30e2fb76be9aec35 (patch)
tree1fcd77cad971fb4306ac2f4a44acea15f4d381b8 /winsup/cygwin/include/pty.h
parent37520977df49e4833ac14335cd5179b58af69cb9 (diff)
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.
Diffstat (limited to 'winsup/cygwin/include/pty.h')
-rw-r--r--winsup/cygwin/include/pty.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/include/pty.h b/winsup/cygwin/include/pty.h
index e4b4da03f..7b92a2b4d 100644
--- a/winsup/cygwin/include/pty.h
+++ b/winsup/cygwin/include/pty.h
@@ -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
}