musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/include/setjmp.h
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2013年01月04日 18:47:17 +0100
committerrofl0r <retnyg@gmx.net>2013年01月04日 20:36:34 +0100
commitd84923d89e4fe46877334cbaa5e4549f2c4cb8a6 (patch)
treedab643d17b226cac9c4df5fcb8ec0ae6d99cc392 /include/setjmp.h
parent2ba3f44db51a816d3f89ca64d8943a3bee03fa5f (diff)
downloadmusl-d84923d89e4fe46877334cbaa5e4549f2c4cb8a6.tar.gz
setjmp.h: add struct tag for sigjmp_buf (GCC C++ compatibility)
the anonymous struct typedef with array notation breaks with GCC in C++ mode: error: non-local function 'static<anonymous struct> (& boost::signal_handler::jump_buffer())[1]' uses anonymous type this is a known GCC issue, as search results for that error msg suggest. since this is hard to work around in the calling C++ code, a fix in musl is preferable.
Diffstat (limited to 'include/setjmp.h')
-rw-r--r--include/setjmp.h 2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/setjmp.h b/include/setjmp.h
index abc74234..5456d8f8 100644
--- a/include/setjmp.h
+++ b/include/setjmp.h
@@ -13,7 +13,7 @@ extern "C" {
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
|| defined(_BSD_SOURCE)
-typedef struct {
+typedef struct __sigjmp_buf {
jmp_buf __jb;
unsigned long __fl;
unsigned long __ss[128/sizeof(long)];
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月31日 13:45:11 +0000

AltStyle によって変換されたページ (->オリジナル) /