$NetBSD: patch-al,v 1.2 2006/01/01 19:12:54 hubertf Exp $

--- osdep.h.orig	2005-12-19 23:51:53.000000000 +0100
+++ osdep.h
@@ -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);
@@ -31,7 +33,11 @@ extern void __longjmp(jmp_buf env, int v
 struct qemu_sigaction {
     union {
         void (*_sa_handler)(int);
+#ifdef __NetBSD__
+        void (*_sa_sigaction)(int, union siginfo *, void *);
+#else
         void (*_sa_sigaction)(int, struct siginfo *, void *);
+#endif
     } _u;
     unsigned long sa_flags;
     void (*sa_restorer)(void);
