From: Todd C. Miller <Todd.Miller@courtesan.com> Date: Fri, 30 Mar 2012 11:55:49 +0000 (-0400) Subject: Fix compat setutxent and endutxent macros for systems with X-Git-Tag: SUDO_1_8_5~1^2~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5eb61122a6c08afecf8fadd5d495e68deead697f;p=sudo Fix compat setutxent and endutxent macros for systems with setutent() but not setutxent(). From Gustavo Zacarias --- diff --git a/src/utmp.c b/src/utmp.c index 7f8113bd5..dd606cf2d 100644 --- 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(u) setutent(u) +# define endutxent(u) endutent(u) #endif /* !HAVE_GETUTXID && HAVE_GETUTID */ #ifdef HAVE_GETUTXID