]> granicus.if.org Git - python/commitdiff
Restore prototypes for the 'openpty' and 'forkpty' on BSDI (broken in issue #1772673).
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 19 Oct 2013 18:39:31 +0000 (21:39 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 19 Oct 2013 18:39:31 +0000 (21:39 +0300)
Include/pyport.h

index 17dad4165aec5ab58071cea01566d0629023d974..ca20b226016a90ad93af3696d4b3c1742ef2d2ce 100644 (file)
@@ -673,10 +673,8 @@ 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 *,
-                   const struct termios *, const struct winsize *);
-extern pid_t forkpty(int *, char *,
-                     const struct termios *, const struct winsize *);
+extern int openpty(int *, int *, char *, struct termios *, struct winsize *);
+extern pid_t forkpty(int *, char *, struct termios *, struct winsize *);
 #endif /* !defined(HAVE_PTY_H) && !defined(HAVE_LIBUTIL_H) */
 #endif /* defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) */