Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 46059 Details for
Bug 69470
sys-apps/utempter-0.5.5.5 compile failure in uclibc environment + QA issues
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
solves missing utmpx on uclibc
utempter-0.5.5.5-no_utmpx.patch (text/plain), 768 bytes, created by
Peter S. Mazinger
on 2004-12-15 10:50:25 UTC
(
hide
)
Description:
solves missing utmpx on uclibc
Filename:
MIME Type:
Creator:
Peter S. Mazinger
Created:
2004-12-15 10:50:25 UTC
Size:
768 bytes
patch
obsolete
>--- utempter-0.5.5/utempter.c.mps 2004-12-11 14:54:06.000000000 +0100 >+++ utempter-0.5.5/utempter.c 2004-12-11 14:57:46.000000000 +0100 >@@ -11,7 +11,9 @@ > #include <sys/stat.h> > #include <sys/sysmacros.h> > #include <utmp.h> >+#ifndef __UCLIBC__ > #include <utmpx.h> >+#endif > #include <unistd.h> > > static void usage(void) { >@@ -82,7 +84,11 @@ > } > > int main(int argc, const char ** argv) { >+#ifndef __UCLIBC__ > struct utmpx utx; >+#else >+ struct utmp utx; >+#endif > int add; > const char * device, * host; > struct passwd * pw; >@@ -154,8 +160,13 @@ > > gettimeofday(&utx.ut_tv, NULL); > >+#ifndef __UCLIBC__ > pututxline(&utx); > updwtmpx(_PATH_WTMP, &utx); >+#else >+ pututline(&utx); >+ updwtmp(_PATH_WTMP, &utx); >+#endif > > return 0; > }
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 69470
: 46059