Module Name:    src
Committed By:   matt
Date:           Wed Aug 12 04:57:36 UTC 2009

Modified Files:
        src/include: setjmp.h

Log Message:
Allow <machine/setjmp.h> to override the type using in jmpbuf.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/include/setjmp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/setjmp.h
diff -u src/include/setjmp.h:1.24 src/include/setjmp.h:1.25
--- src/include/setjmp.h:1.24	Mon Dec 24 17:26:09 2007
+++ src/include/setjmp.h	Wed Aug 12 04:57:36 2009
@@ -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>
 

Reply via email to