Skip to content

Commit 9d5543a

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

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
@@ -8722,14 +8722,14 @@ os_ptsname_impl(PyObject *module, int fd)
87228722
#if defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) || defined(HAVE_LOGIN_TTY) || defined(HAVE_DEV_PTMX)
87238723
#ifdef HAVE_PTY_H
87248724
#include <pty.h>
8725-
#ifdef HAVE_UTMP_H
8726-
#include <utmp.h>
8727-
#endif /* HAVE_UTMP_H */
87288725
#elif defined(HAVE_LIBUTIL_H)
87298726
#include <libutil.h>
87308727
#elif defined(HAVE_UTIL_H)
87318728
#include <util.h>
87328729
#endif /* HAVE_PTY_H */
8730+
#ifdef HAVE_UTMP_H
8731+
#include <utmp.h>
8732+
#endif /* HAVE_UTMP_H */
87338733
#ifdef HAVE_STROPTS_H
87348734
#include <stropts.h>
87358735
#endif

0 commit comments

Comments
 (0)