summaryrefslogtreecommitdiff
path: root/Include/pyport.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-10-19 21:03:34 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2013-10-19 21:03:34 +0300
commitc679227e31245b0e8dec74a1f7cc77710541d985 (patch)
tree0ed52ac2bd85d0cad42e39aec5437a603750425b /Include/pyport.h
parent80ab13067e9b8fbd02a05a4863e26b04938b77f5 (diff)
downloadcpython-git-c679227e31245b0e8dec74a1f7cc77710541d985.tar.gz
Issue #1772673: The type of `char*` arguments now changed to `const char*`.
Diffstat (limited to 'Include/pyport.h')
-rw-r--r--Include/pyport.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index ca20b22601..17dad4165a 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -673,8 +673,10 @@ extern char * _getpty(int *, int, mode_t, int);
/* BSDI does not supply a prototype for the 'openpty' and 'forkpty'
functions, even though they are included in libutil. */
#include <termios.h>
-extern int openpty(int *, int *, char *, struct termios *, struct winsize *);
-extern pid_t forkpty(int *, char *, struct termios *, struct winsize *);
+extern int openpty(int *, int *, char *,
+ const struct termios *, const struct winsize *);
+extern pid_t forkpty(int *, char *,
+ const struct termios *, const struct winsize *);
#endif /* !defined(HAVE_PTY_H) && !defined(HAVE_LIBUTIL_H) */
#endif /* defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) */