diff --git a/login/utmp_file.c b/login/utmp_file.c index 54f424f..8b6fee9 100644 --- a/login/utmp_file.c +++ b/login/utmp_file.c @@ -85,7 +85,7 @@ try_file_lock (struct file_locking *locking, int fd, int type) alarm (TIMEOUT); /* Try to get the lock. */ - struct flock fl = + struct flock64 fl = { .l_type = type, fl.l_whence = SEEK_SET, @@ -96,7 +96,7 @@ try_file_lock (struct file_locking *locking, int fd, int type) static void file_unlock (int fd) { - struct flock fl = + struct flock64 fl = { .l_type = F_UNLCK, };