Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 639424
Collapse All | Expand All

(-)a/src/os.h (-3 / +4 lines)
Lines 250-258 extern int errno; Link Here
250
#endif
250
#endif
251
251
252
#if defined(UTMPOK) || defined(BUGGYGETLOGIN)
252
#if defined(UTMPOK) || defined(BUGGYGETLOGIN)
253
# if defined(SVR4) && !defined(DGUX) && !defined(__hpux) && !defined(linux)
253
# if defined(SVR4) && !defined(DGUX) && !defined(__hpux)
254
#  include <utmpx.h>
254
#  include <utmpx.h>
255
#  define UTMPFILE	UTMPX_FILE
255
#  ifdef UTMPX_FILE /* GNU extension */
256
#   define UTMPFILE	UTMPX_FILE
257
#  endif
256
#  define utmp		utmpx
258
#  define utmp		utmpx
257
#  define getutent	getutxent
259
#  define getutent	getutxent
258
#  define getutid	getutxid
260
#  define getutid	getutxid
Lines 260-266 extern int errno; Link Here
260
#  define pututline	pututxline
262
#  define pututline	pututxline
261
#  define setutent	setutxent
263
#  define setutent	setutxent
262
#  define endutent	endutxent
264
#  define endutent	endutxent
263
#  define ut_time	ut_xtime
264
# else /* SVR4 */
265
# else /* SVR4 */
265
#  include <utmp.h>
266
#  include <utmp.h>
266
# endif /* SVR4 */
267
# endif /* SVR4 */
(-)a/src/utmp.c (-3 / +2 lines)
Lines 631-637 int pid; Link Here
631
  /* must use temp variable because of NetBSD/sparc64, where
631
  /* must use temp variable because of NetBSD/sparc64, where
632
   * ut_xtime is long(64) but time_t is int(32) */
632
   * ut_xtime is long(64) but time_t is int(32) */
633
  (void)time(&now);
633
  (void)time(&now);
634
  u->ut_time = now;
634
  u->ut_tv.tv_sec = now;
635
}
635
}
636
636
637
static slot_t
637
static slot_t
Lines 743-749 int pid; Link Here
743
  strncpy(u->ut_line, line, sizeof(u->ut_line));
743
  strncpy(u->ut_line, line, sizeof(u->ut_line));
744
  strncpy(u->ut_name, user, sizeof(u->ut_name));
744
  strncpy(u->ut_name, user, sizeof(u->ut_name));
745
  (void)time(&now);
745
  (void)time(&now);
746
  u->ut_time = now;
746
  u->ut_tv.tv_sec = now;
747
}
747
}
748
748
749
static slot_t
749
static slot_t
750
- 

Return to bug 639424