We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d446dbc commit 9d5543aCopy full SHA for 9d5543a
Modules/posixmodule.c
@@ -8722,14 +8722,14 @@ os_ptsname_impl(PyObject *module, int fd)
8722
#if defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) || defined(HAVE_LOGIN_TTY) || defined(HAVE_DEV_PTMX)
8723
#ifdef HAVE_PTY_H
8724
#include <pty.h>
8725
-#ifdef HAVE_UTMP_H
8726
-#include <utmp.h>
8727
-#endif /* HAVE_UTMP_H */
8728
#elif defined(HAVE_LIBUTIL_H)
8729
#include <libutil.h>
8730
#elif defined(HAVE_UTIL_H)
8731
#include <util.h>
8732
#endif /* HAVE_PTY_H */
+#ifdef HAVE_UTMP_H
+#include <utmp.h>
+#endif /* HAVE_UTMP_H */
8733
#ifdef HAVE_STROPTS_H
8734
#include <stropts.h>
8735
#endif
0 commit comments