summaryrefslogtreecommitdiff
path: root/data/openssh/utmp.diff
blob: 6a5cf861715699d2c9525c4876577048a1ac27a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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