about summary refs log tree commit diff
path: root/login/utmp-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'login/utmp-private.h')
-rw-r--r--login/utmp-private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/login/utmp-private.h b/login/utmp-private.h
index 14b52b08c8..82c84348a6 100644
--- a/login/utmp-private.h
+++ b/login/utmp-private.h
@@ -23,6 +23,7 @@
 #define _UTMP_PRIVATE_H	1
 
 #include <utmp.h>
+#include <bits/libc-lock.h>
 
 /* The structure describing the functions in a backend.  */
 struct utfuncs
@@ -46,4 +47,8 @@ extern struct utfuncs *__libc_utmp_jump_table attribute_hidden;
 /* Current file name.  */
 extern const char *__libc_utmp_file_name attribute_hidden;
 
+/* Locks access to the global data.  */
+__libc_lock_define (extern, __libc_utmp_lock attribute_hidden)
+
+
 #endif /* utmp-private.h */