]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include: Include <unistd.h> in pidfd-utils.h for syscall()
authorXi Ruoyao <xry111@xry111.site>
Sat, 30 Mar 2024 16:42:03 +0000 (00:42 +0800)
committerXi Ruoyao <xry111@xry111.site>
Sat, 30 Mar 2024 16:45:59 +0000 (00:45 +0800)
In Glibc, <sys/syscall.h> only contains SYS_* macros and the syscall()
function is in <unistd.h>.  So include it.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
include/pidfd-utils.h

index ff0bc4c792fc5e07bcecd4244142c0529eed52f0..0ee55f3bac08c7df08ac63fb0cf35e0822f18335 100644 (file)
@@ -7,6 +7,7 @@
 
 #ifdef HAVE_SYS_SYSCALL_H
 # include <sys/syscall.h>
+# include <unistd.h>
 
 /*
  * If the kernel headers are too old to provide the syscall numbers, let's