summaryrefslogtreecommitdiff
path: root/emulators/qemu/patches/patch-al
blob: 71f86322db527444141b7120ddb21b6a1ffe5adc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD: patch-al,v 1.3 2006/09/05 00:44:38 xtraeme Exp $

--- osdep.h.orig	2006-07-22 19:23:34.000000000 +0200
+++ osdep.h	2006-09-05 01:25:58.000000000 +0200
@@ -2,6 +2,8 @@
 #define QEMU_OSDEP_H
 
 #include <stdarg.h>
+#include <sys/types.h>
+#include <sys/signal.h>
 
 int qemu_vsnprintf(char *buf, int buflen, const char *fmt, va_list args);
 void qemu_vprintf(const char *fmt, va_list ap);
@@ -27,13 +29,19 @@
 
 #include <signal.h>
 
+#ifndef __NetBSD__
 struct siginfo;
+#endif
 
 /* NOTE: it works only because the glibc sigset_t is >= kernel sigset_t */
 struct qemu_sigaction {
     union {
         void (*_sa_handler)(int);
+#ifdef __NetBSD__
+        void (*_sa_sigaction)(int, siginfo_t *, void *);
+#else
         void (*_sa_sigaction)(int, struct siginfo *, void *);
+#endif
     } _u;
     unsigned long sa_flags;
     void (*sa_restorer)(void);