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)
committerJacob Lifshay <programmerjake@gmail.com>
Wed, 13 Dec 2023 00:59:12 +0000 (16:59 -0800)
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]