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>
Sun, 3 Dec 2023 09:32:04 +0000 (01:32 -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]