Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 510342 Details for
Bug 639424
app-misc/screen-4.4.0 no longer compiles on musl systems (struct utmp incomplete type)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix utmp/utmpx handling on musl
screen-74fdc8988b55633cd05f8625390cd3f6a8102003.patch (text/plain), 1.78 KB, created by
David Flogeras
on 2017-12-16 15:28:41 UTC
(
hide
)
Description:
Fix utmp/utmpx handling on musl
Filename:
MIME Type:
Creator:
David Flogeras
Created:
2017-12-16 15:28:41 UTC
Size:
1.78 KB
patch
obsolete
>From 74fdc8988b55633cd05f8625390cd3f6a8102003 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= <amade@asmblr.net> >Date: Sat, 13 Jun 2015 17:52:46 +0200 >Subject: change checks for utmp/utmpx in header > >linuxes should've working utmpx, so this check was bit weird >commit 2b1bdf96 mentions some "linux workaround", but nothing specific > >fixes build with musl libc >--- > src/os.h | 7 ++++--- > src/utmp.c | 4 ++-- > 2 files changed, 6 insertions(+), 5 deletions(-) > >diff --git a/src/os.h b/src/os.h >index 55de249..e827ac9 100644 >--- a/src/os.h >+++ b/src/os.h >@@ -250,9 +250,11 @@ extern int errno; > #endif > > #if defined(UTMPOK) || defined(BUGGYGETLOGIN) >-# if defined(SVR4) && !defined(DGUX) && !defined(__hpux) && !defined(linux) >+# if defined(SVR4) && !defined(DGUX) && !defined(__hpux) > # include <utmpx.h> >-# define UTMPFILE UTMPX_FILE >+# ifdef UTMPX_FILE /* GNU extension */ >+# define UTMPFILE UTMPX_FILE >+# endif > # define utmp utmpx > # define getutent getutxent > # define getutid getutxid >@@ -260,7 +262,6 @@ extern int errno; > # define pututline pututxline > # define setutent setutxent > # define endutent endutxent >-# define ut_time ut_xtime > # else /* SVR4 */ > # include <utmp.h> > # endif /* SVR4 */ >diff --git a/src/utmp.c b/src/utmp.c >index fa8b87b..f5d7db8 100644 >--- a/src/utmp.c >+++ b/src/utmp.c >@@ -631,7 +631,7 @@ int pid; > /* must use temp variable because of NetBSD/sparc64, where > * ut_xtime is long(64) but time_t is int(32) */ > (void)time(&now); >- u->ut_time = now; >+ u->ut_tv.tv_sec = now; > } > > static slot_t >@@ -743,7 +743,7 @@ int pid; > strncpy(u->ut_line, line, sizeof(u->ut_line)); > strncpy(u->ut_name, user, sizeof(u->ut_name)); > (void)time(&now); >- u->ut_time = now; >+ u->ut_tv.tv_sec = now; > } > > static slot_t >-- >cgit v1.0-41-gc330 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 639424
:
507530
|
507766
|
507856
| 510342