$NetBSD: patch-gdb_bsd-kvm.c,v 1.2 2022/12/04 19:04:21 he Exp $ (1) (unknown yet) (2) +#include part: NetBSD/i386 5.2 has following problem without sys/signal.h from bsd-kvm.c:36: /usr/include/sys/signalvar.h:56: error: field 'sd_sigact' has incomplete type /usr/include/sys/signalvar.h:59: error: 'NSIG' undeclared here (not in a function) gmake[2]: *** [bsd-kvm.o] Error 1 (3) properly conditionalize use of --- gdb/bsd-kvm.c.orig 2015-02-19 11:58:07.000000000 +0000 +++ gdb/bsd-kvm.c @@ -28,7 +28,12 @@ #include "gdbthread.h" #include +#include #include +#define _KMEMUSER 1 +#include +#include +#include #ifdef HAVE_NLIST_H #include #endif @@ -36,7 +41,10 @@ #include "readline/readline.h" #include #include +#include +#ifdef HAVE_SYS_USER_H #include +#endif #include "bsd-kvm.h"