about summary refs log tree commit diff
path: root/login
diff options
context:
space:
mode:
Diffstat (limited to 'login')
-rw-r--r--login/Makefile4
-rw-r--r--login/lastlog.h4
-rw-r--r--login/utmp.h4
3 files changed, 7 insertions, 5 deletions
diff --git a/login/Makefile b/login/Makefile
index d3e6ac8aa5..99687433a0 100644
--- a/login/Makefile
+++ b/login/Makefile
@@ -22,7 +22,7 @@
 
 subdir	:= login
 
-headers	:= utmp.h utmpbits.h
+headers	:= utmp.h utmpbits.h lastlog.h
 
 routines := setutent endutent getutent getutid getutline pututline	\
 	    setutent_r endutent_r getutent_r getutid_r getutline_r	\
@@ -34,5 +34,3 @@ libutil-routines:= login login_tty logout logwtmp pty
 
 
 include ../Rules
-
-override CFLAGS += -D_THREAD_SAFE
diff --git a/login/lastlog.h b/login/lastlog.h
new file mode 100644
index 0000000000..f2443eb702
--- /dev/null
+++ b/login/lastlog.h
@@ -0,0 +1,4 @@
+/* This header file is used in 4.3BSD to define `struct lastlog',
+   which we define in <utmpbits.h>.  */
+
+#include <utmp.h>
diff --git a/login/utmp.h b/login/utmp.h
index 2ba3da8e0b..b53e13a9e0 100644
--- a/login/utmp.h
+++ b/login/utmp.h
@@ -62,7 +62,7 @@ extern struct utmp *getutline __P ((__const struct utmp *__line));
 extern struct utmp *pututline __P ((__const struct utmp *__utmp_ptr));
 
 
-#if defined(_REENTRANT) || defined(_THREAD_SAFE)
+#ifdef	__USE_REENTRANT
 /* Define the data structure needed for the reentrent version.  */
 struct utmp_data
 {
@@ -89,7 +89,7 @@ extern int getutline_r __P ((__const struct utmp *__line, struct utmp **__utmp,
 extern int pututline_r __P ((__const struct utmp *__utmp_ptr,
 			     struct utmp_data *__utmp_data));
 
-#endif /* _REENTRENT || _THREAD_SAFE */
+#endif	/* Use reentrant.  */
 
 __END_DECLS