diff options
Diffstat (limited to 'login')
-rw-r--r-- | login/utmp-private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/login/utmp-private.h b/login/utmp-private.h index 14b52b0..82c8434 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 */ |