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 #endif +#ifdef HAVE_UTIL_H +# include +#endif + #ifdef HAVE_UTMP_H # include #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