]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
include sys/file.h for LOCK_EX
authorKhem Raj <raj.khem@gmail.com>
Wed, 2 Aug 2023 17:33:48 +0000 (10:33 -0700)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 2 Aug 2023 18:49:15 +0000 (19:49 +0100)
Fixes
| ../git/src/basic/user-util.c:708:30: error: use of undeclared identifier 'LOCK_EX'; did you mean 'LOCK_BSD'?
|   708 |         r = unposix_lock(fd, LOCK_EX);
|       |                              ^~~~~~~
|       |                              LOCK_BSD

Signed-off-by: Khem Raj <raj.khem@gmail.com>
src/basic/user-util.c

index fe61a0900551e61733a5701cf1165733e8df2b37..5c39847733bb3dec1531a47c998990db68c6bc70 100644 (file)
@@ -6,6 +6,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <sys/file.h>
 #include <sys/stat.h>
 #include <unistd.h>
 #include <utmp.h>