# undef HAVE_UTMPX_H
# endif
-# ifdef HAVE_UTMPX_H
-# ifdef HAVE_UTMP_H
+# if HAVE_UTMPX_H
+# if HAVE_UTMP_H
/* HPUX 10.20 needs utmp.h, for the definition of e.g., UTMP_FILE. */
# include <utmp.h>
# endif
# endif
# endif
-# else
+# elif HAVE_UTMP_H
+
# include <utmp.h>
# if !HAVE_DECL_GETUTENT
struct utmp *getutent();
# endif
/* Accessor macro for the member named ut_user or ut_name. */
-# ifdef HAVE_UTMPX_H
+# if HAVE_UTMPX_H
# if HAVE_STRUCT_UTMPX_UT_USER
# define UT_USER(Utmp) ((Utmp)->ut_user)
# define UT_USER(Utmp) ((Utmp)->ut_name)
# endif
-# else
+# elif HAVE_UTMP_H
# if HAVE_STRUCT_UTMP_UT_USER
# define UT_USER(Utmp) ((Utmp)->ut_user)