summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-04-25 04:30:01 +0000
committerngie <ngie@FreeBSD.org>2015-04-25 04:30:01 +0000
commit23066486baa955e065c83bc5afcb120fa8087209 (patch)
treeb74f64d6e3cfc077596a171253ee5eac2388157e /contrib/netbsd-tests
parent5a5431c41504233b8c913f79e29abb8015c460a5 (diff)
downloadFreeBSD-src-23066486baa955e065c83bc5afcb120fa8087209.zip
FreeBSD-src-23066486baa955e065c83bc5afcb120fa8087209.tar.gz
Add #include sys/types.h for register_t for mips
MFC after: 3 days
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r--contrib/netbsd-tests/lib/libpthread/t_swapcontext.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c b/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c
index 8fd2314..c0c375f 100644
--- a/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c
+++ b/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c
@@ -28,6 +28,9 @@
#include <sys/cdefs.h>
__RCSID("$NetBSD");
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#endif
#include <pthread.h>
#include <ucontext.h>
#include <stdio.h>
OpenPOWER on IntegriCloud