From d897ea158d48b30e379bd3fbed9b090a2f5d4ad1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 23 Apr 2012 23:30:13 +0000 Subject: Fix building on systems without utmpx.h. Package-Manager: portage-2.2.0_alpha100/cvs/Linux x86_64 --- app-admin/sudo/files/sudo-1.8.3_p1-no-utmpx.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app-admin/sudo/files/sudo-1.8.3_p1-no-utmpx.patch (limited to 'app-admin/sudo/files') 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 -- cgit v1.2.3-65-gdbad