diff options
Diffstat (limited to 'data/_openssh/utmp.diff')
-rw-r--r-- | data/_openssh/utmp.diff | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/data/_openssh/utmp.diff b/data/_openssh/utmp.diff new file mode 100644 index 000000000..6a5cf8617 --- /dev/null +++ b/data/_openssh/utmp.diff @@ -0,0 +1,41 @@ +diff -ru openssh-6.7p1/includes.h openssh-6.7p1+iPhone/includes.h +--- openssh-6.7p1/includes.h 2013-03-22 01:51:09.000000000 +0000 ++++ openssh-6.7p1+iPhone/includes.h 2014-12-03 08:07:53.000000000 +0000 +@@ -18,6 +18,8 @@ + + #include "config.h" + ++#define _UTMPX_COMPAT ++ + #ifndef _GNU_SOURCE + #define _GNU_SOURCE /* activate extra prototypes for glibc */ + #endif +@@ -66,6 +68,10 @@ + # include <login.h> + #endif + ++#ifdef HAVE_UTIL_H ++# include <util.h> ++#endif ++ + #ifdef HAVE_UTMP_H + # include <utmp.h> + #endif +diff -ru openssh-6.7p1/loginrec.c openssh-6.7p1+iPhone/loginrec.c +--- openssh-6.7p1/loginrec.c 2014-01-17 01:23:24.000000000 +0000 ++++ openssh-6.7p1+iPhone/loginrec.c 2014-12-03 08:07:53.000000000 +0000 +@@ -184,12 +184,12 @@ + ** prototypes for helper functions in this file + **/ + +-#if HAVE_UTMP_H ++#if defined(USE_UTMP) || defined (USE_WTMP) || defined (USE_LOGIN) + void set_utmp_time(struct logininfo *li, struct utmp *ut); + void construct_utmp(struct logininfo *li, struct utmp *ut); + #endif + +-#ifdef HAVE_UTMPX_H ++#if defined(USE_UTMPX) || defined (USE_WTMPX) + void set_utmpx_time(struct logininfo *li, struct utmpx *ut); + void construct_utmpx(struct logininfo *li, struct utmpx *ut); + #endif |