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 optional
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 35d4fb4bb..bbb992816 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -27,6 +27,9 @@
27/* Define is utmpx.h has a ut_host field */ 27/* Define is utmpx.h has a ut_host field */
28#undef HAVE_HOST_IN_UTMPX 28#undef HAVE_HOST_IN_UTMPX
29 29
30/* Define if you want to use utmpx */
31#undef USE_UTMPX
32
30/* Define is libutil has login() function */ 33/* Define is libutil has login() function */
31#undef HAVE_LIBUTIL_LOGIN 34#undef HAVE_LIBUTIL_LOGIN
32 35
@@ -91,7 +94,7 @@
91# include <utmp.h> /* For _PATH_XXX */ 94# include <utmp.h> /* For _PATH_XXX */
92#endif 95#endif
93 96
94#ifdef HAVE_UTMPX_H 97#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
95# include <utmpx.h> /* For _PATH_XXX */ 98# include <utmpx.h> /* For _PATH_XXX */
96#endif 99#endif
97 100
@@ -183,7 +186,7 @@ enum
183#endif 186#endif
184 187
185/* Use utmpx if supported */ 188/* Use utmpx if supported */
186#ifdef HAVE_UTMPX_H 189#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
187# define UTMP_STR utmpx 190# define UTMP_STR utmpx
188#else 191#else
189# ifdef HAVE_UTMP_H 192# ifdef HAVE_UTMP_H
@@ -192,7 +195,7 @@ enum
192#endif 195#endif
193 196
194#ifndef _PATH_UTMP 197#ifndef _PATH_UTMP
195# ifdef UTMPX_FILE 198# if defined(UTMPX_FILE) && defined(USE_UTMPX)
196# define _PATH_UTMP UTMPX_FILE 199# define _PATH_UTMP UTMPX_FILE
197# else 200# else
198# ifdef UTMP_FILE 201# ifdef UTMP_FILE
@@ -204,7 +207,7 @@ enum
204#endif 207#endif
205 208
206#ifndef _PATH_WTMP 209#ifndef _PATH_WTMP
207# ifdef WTMPX_FILE 210# if defined(WTMPX_FILE) && defined(USE_UTMPX)
208# define _PATH_WTMP WTMPX_FILE 211# define _PATH_WTMP WTMPX_FILE
209# else 212# else
210# ifdef WTMP_FILE 213# ifdef WTMP_FILE