summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormatt <matt@NetBSD.org>2009-08-12 04:57:36 +0000
committermatt <matt@NetBSD.org>2009-08-12 04:57:36 +0000
commit21d93aff030ed0fb00c3974ff30575c8c93e481f (patch)
tree6ee5cb86bbac2278fd7bb833d47edbce84b709c7 /include
parent24ddf1fdf8505d17383eee68012ce381dc8850e3 (diff)
Allow <machine/setjmp.h> to override the type using in jmpbuf.
Diffstat (limited to 'include')
-rw-r--r--include/setjmp.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/setjmp.h b/include/setjmp.h
index 5588fdee74c..b9512355425 100644
--- a/include/setjmp.h
+++ b/include/setjmp.h
@@ -1,4 +1,4 @@
-/* $NetBSD: setjmp.h,v 1.24 2007/12/24 17:26:09 perry Exp $ */
+/* $NetBSD: setjmp.h,v 1.25 2009/08/12 04:57:36 matt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -47,13 +47,16 @@
#define _JB_ATTRIBUTES /**/
#else
#endif
+#ifndef _BSD_JBSLOT_T_
+#define _BSD_JBSLOT_T_ long
+#endif
#if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \
defined(_NETBSD_SOURCE)
-typedef long sigjmp_buf[_JBLEN + 1] _JB_ATTRIBUTES;
+typedef _BSD_JBSLOT_T_ sigjmp_buf[_JBLEN + 1] _JB_ATTRIBUTES;
#endif /* not ANSI */
-typedef long jmp_buf[_JBLEN] _JB_ATTRIBUTES;
+typedef _BSD_JBSLOT_T_ jmp_buf[_JBLEN] _JB_ATTRIBUTES;
#include <sys/cdefs.h>