Skip to content

Commit afe244d

Browse files
[3.14] gh-135108: Fix utmp.h inclusion in posixmodule.c on NetBSD (GH-135109) (GH-135127)
(cherry picked from commit 5b38654) Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
1 parent b2b9aaa commit afe244d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/posixmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8806,14 +8806,14 @@ os_ptsname_impl(PyObject *module, int fd)
88068806
#if defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) || defined(HAVE_LOGIN_TTY) || defined(HAVE_DEV_PTMX)
88078807
#ifdef HAVE_PTY_H
88088808
#include <pty.h>
8809-
#ifdef HAVE_UTMP_H
8810-
#include <utmp.h>
8811-
#endif /* HAVE_UTMP_H */
88128809
#elif defined(HAVE_LIBUTIL_H)
88138810
#include <libutil.h>
88148811
#elif defined(HAVE_UTIL_H)
88158812
#include <util.h>
88168813
#endif /* HAVE_PTY_H */
8814+
#ifdef HAVE_UTMP_H
8815+
#include <utmp.h>
8816+
#endif /* HAVE_UTMP_H */
88178817
#ifdef HAVE_STROPTS_H
88188818
#include <stropts.h>
88198819
#endif

0 commit comments

Comments
 (0)