From fbdb21a3a56e86fca4a9773f7489914f4d539dc6 Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Mon, 6 Apr 2009 10:41:45 +0000 Subject: Upgraded OpenSS* to work with 3.x. git-svn-id: http://svn.telesphoreo.org/trunk@561 514c082c-b64e-11dc-b46d-3d985efe055d --- data/openssh/utmp.diff | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 data/openssh/utmp.diff (limited to 'data/openssh/utmp.diff') diff --git a/data/openssh/utmp.diff b/data/openssh/utmp.diff new file mode 100644 index 000000000..fcba24b7d --- /dev/null +++ b/data/openssh/utmp.diff @@ -0,0 +1,40 @@ +diff -ru openssh-5.2p1/includes.h openssh-5.2p1+iPhone/includes.h +--- openssh-5.2p1/includes.h 2008-07-04 13:10:49.000000000 +0000 ++++ openssh-5.2p1+iPhone/includes.h 2009-04-06 09:36:35.000000000 +0000 +@@ -18,6 +18,7 @@ + + #include "config.h" + ++#define _UTMPX_COMPAT + #define _GNU_SOURCE /* activate extra prototypes for glibc */ + + #include +@@ -63,6 +64,10 @@ + # include + #endif + ++#ifdef HAVE_UTIL_H ++# include ++#endif ++ + #ifdef HAVE_UTMP_H + # include + #endif +diff -ru openssh-5.2p1/loginrec.c openssh-5.2p1+iPhone/loginrec.c +--- openssh-5.2p1/loginrec.c 2009-02-12 02:12:22.000000000 +0000 ++++ openssh-5.2p1+iPhone/loginrec.c 2009-04-06 09:30:45.000000000 +0000 +@@ -188,12 +188,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 -- cgit v1.2.3