* [gentoo-commits] gentoo-x86 commit in app-admin/sudo/files: sudo-1.8.3_p1-no-utmpx.patch
@ 2012-04-23 23:30 Mike Frysinger (vapier)
0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2012-04-23 23:30 UTC (permalink / raw
To: gentoo-commits
vapier 12/04/23 23:30:13
Added: sudo-1.8.3_p1-no-utmpx.patch
Log:
Fix building on systems without utmpx.h.
(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)
Revision Changes Path
1.1 app-admin/sudo/files/sudo-1.8.3_p1-no-utmpx.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/sudo/files/sudo-1.8.3_p1-no-utmpx.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/sudo/files/sudo-1.8.3_p1-no-utmpx.patch?rev=1.1&content-type=text/plain
Index: sudo-1.8.3_p1-no-utmpx.patch
===================================================================
the fallback logic doesn't even compile
--- a/src/utmp.c
+++ b/src/utmp.c
@@ -63,8 +63,8 @@
#if !defined(HAVE_GETUTXID) && defined(HAVE_GETUTID)
# define getutxline(u) getutline(u)
# define pututxline(u) pututline(u)
-# define setutxent setutent(u)
-# define endutxent endutent(u)
+# define setutxent() setutent()
+# define endutxent() endutent()
#endif /* !HAVE_GETUTXID && HAVE_GETUTID */
#ifdef HAVE_GETUTXID
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-04-23 23:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-23 23:30 [gentoo-commits] gentoo-x86 commit in app-admin/sudo/files: sudo-1.8.3_p1-no-utmpx.patch Mike Frysinger (vapier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox