diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-04-23 23:30:13 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-04-23 23:30:13 +0000 |
commit | d897ea158d48b30e379bd3fbed9b090a2f5d4ad1 (patch) | |
tree | 0df2d846e9ddb3f09942cfef16a043d2cd102e77 /app-admin/sudo/files | |
parent | reverted last changes in plugin_has_gettext function (diff) | |
download | historical-d897ea158d48b30e379bd3fbed9b090a2f5d4ad1.tar.gz historical-d897ea158d48b30e379bd3fbed9b090a2f5d4ad1.tar.bz2 historical-d897ea158d48b30e379bd3fbed9b090a2f5d4ad1.zip |
Fix building on systems without utmpx.h.
Package-Manager: portage-2.2.0_alpha100/cvs/Linux x86_64
Diffstat (limited to 'app-admin/sudo/files')
-rw-r--r-- | app-admin/sudo/files/sudo-1.8.3_p1-no-utmpx.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app-admin/sudo/files/sudo-1.8.3_p1-no-utmpx.patch b/app-admin/sudo/files/sudo-1.8.3_p1-no-utmpx.patch new file mode 100644 index 000000000000..1e72ed643ba1 --- /dev/null +++ b/app-admin/sudo/files/sudo-1.8.3_p1-no-utmpx.patch @@ -0,0 +1,15 @@ +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 |