Skip to content

Commit 5b38654

Browse files
authored
gh-135108: Fix utmp.h inclusion in posixmodule.c on NetBSD (GH-135109)
1 parent 1f51510 commit 5b38654

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
@@ -8820,14 +8820,14 @@ os_ptsname_impl(PyObject *module, int fd)
88208820
#if defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) || defined(HAVE_LOGIN_TTY) || defined(HAVE_DEV_PTMX)
88218821
#ifdef HAVE_PTY_H
88228822
#include <pty.h>
8823-
#ifdef HAVE_UTMP_H
8824-
#include <utmp.h>
8825-
#endif /* HAVE_UTMP_H */
88268823
#elif defined(HAVE_LIBUTIL_H)
88278824
#include <libutil.h>
88288825
#elif defined(HAVE_UTIL_H)
88298826
#include <util.h>
88308827
#endif /* HAVE_PTY_H */
8828+
#ifdef HAVE_UTMP_H
8829+
#include <utmp.h>
8830+
#endif /* HAVE_UTMP_H */
88318831
#ifdef HAVE_STROPTS_H
88328832
#include <stropts.h>
88338833
#endif

0 commit comments

Comments
 (0)