diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-12-07 23:59:25 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-12-08 00:11:45 -0600 |
commit | 5ee86390be9d767743332fd3bd61af1719f049a0 (patch) | |
tree | bc46b1ee7a93156bd8b11f9a7aa5dc94d55a93a3 /system/openssh/utmp-header-check.patch | |
parent | 3e85cb0748ca9c923c339034ec0df3b458d411f8 (diff) | |
download | packages-awilfox/system-fixes.tar.gz packages-awilfox/system-fixes.tar.bz2 packages-awilfox/system-fixes.tar.xz packages-awilfox/system-fixes.zip |
system/openssh: Fix feature detection in autoconfawilfox/system-fixes
This allows wtmp support to be detected properly on utmps systems.
Diffstat (limited to 'system/openssh/utmp-header-check.patch')
-rw-r--r-- | system/openssh/utmp-header-check.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/system/openssh/utmp-header-check.patch b/system/openssh/utmp-header-check.patch new file mode 100644 index 000000000..523466684 --- /dev/null +++ b/system/openssh/utmp-header-check.patch @@ -0,0 +1,59 @@ +Ensure that <utmp.h> is only included when present and available. + +--- openssh-9.4p1/configure.ac.old 2023-08-09 20:10:22.000000000 -0500 ++++ openssh-9.4p1/configure.ac 2024-12-07 23:51:42.425820273 -0600 +@@ -5351,7 +5351,9 @@ + AC_MSG_CHECKING([if your system defines LASTLOG_FILE]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + #include <sys/types.h> +-#include <utmp.h> ++#ifdef HAVE_UTMP_H ++# include <utmp.h> ++#endif + #ifdef HAVE_LASTLOG_H + # include <lastlog.h> + #endif +@@ -5368,7 +5370,9 @@ + AC_MSG_CHECKING([if your system defines _PATH_LASTLOG]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + #include <sys/types.h> +-#include <utmp.h> ++#ifdef HAVE_UTMP_H ++# include <utmp.h> ++#endif + #ifdef HAVE_LASTLOG_H + # include <lastlog.h> + #endif +@@ -5406,7 +5410,9 @@ + AC_MSG_CHECKING([if your system defines UTMP_FILE]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + #include <sys/types.h> +-#include <utmp.h> ++#ifdef HAVE_UTMP_H ++# include <utmp.h> ++#endif + #ifdef HAVE_PATHS_H + # include <paths.h> + #endif +@@ -5436,7 +5442,9 @@ + AC_MSG_CHECKING([if your system defines WTMP_FILE]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + #include <sys/types.h> +-#include <utmp.h> ++#ifdef HAVE_UTMP_H ++# include <utmp.h> ++#endif + #ifdef HAVE_PATHS_H + # include <paths.h> + #endif +@@ -5466,7 +5474,9 @@ + AC_MSG_CHECKING([if your system defines WTMPX_FILE]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + #include <sys/types.h> +-#include <utmp.h> ++#ifdef HAVE_UTMP_H ++# include <utmp.h> ++#endif + #ifdef HAVE_UTMPX_H + #include <utmpx.h> + #endif |