Include utmp.h `#if HAVE_UTMP_H', rather than
authorJim Meyering <jim@meyering.net>
Sun, 20 Aug 2000 12:45:31 +0000 (12:45 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 20 Aug 2000 12:45:31 +0000 (12:45 +0000)
`#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
utmp.h nor utmpx.h.  Reported by Eli Zaretskii.

m4/check-decl.m4

index f49a9c5904241a09f09229f8ad7a49869fdbe6a1..94d9a8f936e30e59ac8d0bc871f58307d27f8d2d 100644 (file)
@@ -38,7 +38,7 @@ AC_DEFUN(jm_CHECK_DECLS,
 # endif
 #endif
 
-#if !HAVE_UTMPX_H
+#if HAVE_UTMP_H
 # include <utmp.h>
 #endif
 '