From e21f96a811d9776f976751b01ac7975eeffcdeb2 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Thu, 22 Aug 2019 21:43:21 +0000 Subject: mips: hide regnum definitions behind _KERNEL/_WANT_MIPS_REGNUM machine/regnum.h ends up being included by sys/procfs.h and sys/ptrace.h via machine/reg.h. Many of the regnum definitions are too short and too generic to be exposing to any userland application including one of these two headers. Moreover, these actively cause build failures in googletest (template expanding to template ). Hide the definitions behind _KERNEL or _WANT_MIPS_REGNUM, and patch all of the userland consumers to define as needed. Discussed with: imp, jhb Reviewed by: imp, jhb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D21330 --- lib/libthread_db/arch/mips/libpthread_md.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libthread_db') diff --git a/lib/libthread_db/arch/mips/libpthread_md.c b/lib/libthread_db/arch/mips/libpthread_md.c index cef786a32887..1ded66d1c3fe 100644 --- a/lib/libthread_db/arch/mips/libpthread_md.c +++ b/lib/libthread_db/arch/mips/libpthread_md.c @@ -33,6 +33,7 @@ __FBSDID("$FreeBSD$"); #include +#define _WANT_MIPS_REGNUM #include #include #include -- cgit v1.3