mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-135108: Fix utmp.h inclusion in posixmodule.c on NetBSD (GH-135109)
This commit is contained in:
parent
1f51510444
commit
5b3865418c
1 changed files with 3 additions and 3 deletions
|
@ -8820,14 +8820,14 @@ os_ptsname_impl(PyObject *module, int fd)
|
||||||
#if defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) || defined(HAVE_LOGIN_TTY) || defined(HAVE_DEV_PTMX)
|
#if defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) || defined(HAVE_LOGIN_TTY) || defined(HAVE_DEV_PTMX)
|
||||||
#ifdef HAVE_PTY_H
|
#ifdef HAVE_PTY_H
|
||||||
#include <pty.h>
|
#include <pty.h>
|
||||||
#ifdef HAVE_UTMP_H
|
|
||||||
#include <utmp.h>
|
|
||||||
#endif /* HAVE_UTMP_H */
|
|
||||||
#elif defined(HAVE_LIBUTIL_H)
|
#elif defined(HAVE_LIBUTIL_H)
|
||||||
#include <libutil.h>
|
#include <libutil.h>
|
||||||
#elif defined(HAVE_UTIL_H)
|
#elif defined(HAVE_UTIL_H)
|
||||||
#include <util.h>
|
#include <util.h>
|
||||||
#endif /* HAVE_PTY_H */
|
#endif /* HAVE_PTY_H */
|
||||||
|
#ifdef HAVE_UTMP_H
|
||||||
|
#include <utmp.h>
|
||||||
|
#endif /* HAVE_UTMP_H */
|
||||||
#ifdef HAVE_STROPTS_H
|
#ifdef HAVE_STROPTS_H
|
||||||
#include <stropts.h>
|
#include <stropts.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue