]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/user_busy.c: Include <utmpx.h>
authorPino Toscano <toscano.pino@tiscali.it>
Tue, 10 Sep 2024 12:36:49 +0000 (14:36 +0200)
committerAlejandro Colomar <alx@kernel.org>
Thu, 12 Sep 2024 09:43:39 +0000 (11:43 +0200)
Since:
- utmpx APIs are used in non-Linux code blocks
- <utmpx.h> is already unconditionally included in Linux parts in other
  files
then unconditionally include it in this file as well.

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
lib/user_busy.c

index 495fa535a1d70e2898cfe357793958281c0c3be5..8e80049e726cc1368a000075459217460b50331c 100644 (file)
@@ -17,6 +17,7 @@
 #include <dirent.h>
 #include <fcntl.h>
 #include <unistd.h>
+#include <utmpx.h>
 
 #include "atoi/getnum.h"
 #include "defines.h"