Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
}
-#ifndef USE_PAM
+#if !defined(USE_PAM) && !defined(HAVE_UPDWTMPX)
/*
* Some systems already have updwtmpx(). Others
* don't, so we re-implement these functions if necessary.
*/
-# ifndef HAVE_UPDWTMPX
static void
updwtmpx(const char *filename, const struct utmpx *ut)
{
close (fd);
}
}
-# endif /* ! HAVE_UPDWTMPX */
-#endif /* ! USE_PAM */
+#endif
/*