Browse Source

Fix header and type definition issue for Ubuntu 13.04+

in db_main.c: add header <sys/types.h>
in shim_table.h and shim_syscall.h: replace "struct siginfo" with
"siginfo_t".
Chia-Che Tsai 9 years ago
parent
commit
9e5e7bded8
3 changed files with 3 additions and 2 deletions
  1. 1 1
      LibOS/shim/include/shim_table.h
  2. 1 1
      LibOS/shim/src/shim_syscalls.c
  3. 1 0
      Pal/src/host/Linux/db_main.c

+ 1 - 1
LibOS/shim/include/shim_table.h

@@ -762,7 +762,7 @@ int shim_mq_notify (__kernel_mqd_t mqdes, const struct sigevent * notification);
 int shim_mq_getsetattr (__kernel_mqd_t mqdes,
                         const struct __kernel_mq_attr * mqstat,
                         struct __kernel_mq_attr * omqstat);
-int shim_waitid (int which, pid_t pid, struct siginfo * infop, int options,
+int shim_waitid (int which, pid_t pid, siginfo_t * infop, int options,
                  struct __kernel_rusage * ru);
 int shim_ioprio_set (int which, int who, int ioprio);
 int shim_ioprio_get (int which, int who);

+ 1 - 1
LibOS/shim/src/shim_syscalls.c

@@ -961,7 +961,7 @@ SHIM_SYSCALL_PASSTHROUGH (kexec_load, 4, int, unsigned long, entry,
 */
 
 SHIM_SYSCALL_PASSTHROUGH (waitid, 5, int, int, which, pid_t, pid,
-                          struct siginfo *, infop, int, options,
+                          siginfo_t *, infop, int, options,
                           struct __kernel_rusage *, ru)
 
 /*

+ 1 - 0
Pal/src/host/Linux/db_main.c

@@ -40,6 +40,7 @@
 #include <asm-errno.h>
 #include <elf/elf.h>
 #include <sysdeps/generic/ldsodefs.h>
+#include <sys/types.h>
 
 asm (".global pal_start \n"
      "  .type pal_start,@function \n"