ppc_flags: include more headers for uname, openat, etc.
authorJacob Lifshay <programmerjake@gmail.com>
Sun, 3 Dec 2023 08:44:48 +0000 (00:44 -0800)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:22 +0000 (19:26 +0000)
src/openpower/syscalls/ppc_flags.py

index b92971fc3e18b03ddf24ed3cea8a937fc92ac962..13da5ec2754a19e740f042243b27392253531e1e 100644 (file)
@@ -17,6 +17,10 @@ def parse_defines(flags, compiler):
 #include <errno.h>
 #include <unistd.h>
 #include <sys/syscall.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <linux/utsname.h>
 """
     if isinstance(compiler, str):
         compiler = [compiler]