summaryrefslogtreecommitdiff
path: root/acconfig.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-12-21 09:51:36 +1100
committerDamien Miller <djm@mindrot.org>1999-12-21 09:51:36 +1100
commit368cf64d5c7cee6eb85d9240ea04ccf43273b5fc (patch)
tree19b5ce1233714df994e9e1699e791d269c577d2c /acconfig.h
parentfdb7caf293e860fda343f9cc98ff3342ed997b73 (diff)
Made utmpx optionalPRE_HPUX_INTEGRATION
Diffstat (limited to 'acconfig.h')
-rw-r--r--acconfig.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/acconfig.h b/acconfig.h
index 35d4fb4b..bbb99281 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -27,6 +27,9 @@
/* Define is utmpx.h has a ut_host field */
#undef HAVE_HOST_IN_UTMPX
+/* Define if you want to use utmpx */
+#undef USE_UTMPX
+
/* Define is libutil has login() function */
#undef HAVE_LIBUTIL_LOGIN
@@ -91,7 +94,7 @@
# include <utmp.h> /* For _PATH_XXX */
#endif
-#ifdef HAVE_UTMPX_H
+#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
# include <utmpx.h> /* For _PATH_XXX */
#endif
@@ -183,7 +186,7 @@ enum
#endif
/* Use utmpx if supported */
-#ifdef HAVE_UTMPX_H
+#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
# define UTMP_STR utmpx
#else
# ifdef HAVE_UTMP_H
@@ -192,7 +195,7 @@ enum
#endif
#ifndef _PATH_UTMP
-# ifdef UTMPX_FILE
+# if defined(UTMPX_FILE) && defined(USE_UTMPX)
# define _PATH_UTMP UTMPX_FILE
# else
# ifdef UTMP_FILE
@@ -204,7 +207,7 @@ enum
#endif
#ifndef _PATH_WTMP
-# ifdef WTMPX_FILE
+# if defined(WTMPX_FILE) && defined(USE_UTMPX)
# define _PATH_WTMP WTMPX_FILE
# else
# ifdef WTMP_FILE