]> granicus.if.org Git - python/commitdiff
Fix warning about ptsname not being a prototype on Solaris. Is this prototype even...
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 10 Apr 2006 07:44:23 +0000 (07:44 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 10 Apr 2006 07:44:23 +0000 (07:44 +0000)
Modules/posixmodule.c

index 84e46375f081358fc8313c6db149ec8f80a0237f..bc966817a76b58c3e9fbc002c9a499d1aaf683d3 100644 (file)
@@ -3094,7 +3094,7 @@ posix_openpty(PyObject *self, PyObject *noargs)
 #if defined(HAVE_DEV_PTMX) && !defined(HAVE_OPENPTY) && !defined(HAVE__GETPTY)
        PyOS_sighandler_t sig_saved;
 #ifdef sun
-       extern char *ptsname();
+       extern char *ptsname(int fildes);
 #endif
 #endif