summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-05-23 00:10:39 -0400
committerRich Felker <dalias@aerifal.cx>2012-05-23 00:10:39 -0400
commit25d575edc494e5a519468889e62beea4dde186ea (patch)
tree96ad8d0299b73918b9770705077bf861718afe12 /include
parent0c29adfe427ab6ed98cb73644f8f52a76045245c (diff)
downloadmusl-25d575edc494e5a519468889e62beea4dde186ea.tar.gz
musl-25d575edc494e5a519468889e62beea4dde186ea.tar.bz2
musl-25d575edc494e5a519468889e62beea4dde186ea.tar.xz
musl-25d575edc494e5a519468889e62beea4dde186ea.zip
debloat jmp_buf in _GNU_SOURCE mode
i originally made it the same size as the bloated GNU version, which contains space for saved signal mask, but this makes some structures containing jmp_buf become much larger for no benefit. we will never use the signal mask field with plain setjmp; sigsetjmp serves that purpose.
Diffstat (limited to 'include')
-rw-r--r--include/setjmp.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/setjmp.h b/include/setjmp.h
index 88fb9508..83ad7491 100644
--- a/include/setjmp.h
+++ b/include/setjmp.h
@@ -12,9 +12,6 @@ extern "C" {
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
|| defined(_BSD_SOURCE)
typedef unsigned long sigjmp_buf[(128+sizeof(jmp_buf))/sizeof(long)];
-#ifdef _GNU_SOURCE
-#define jmp_buf sigjmp_buf
-#endif
int sigsetjmp (sigjmp_buf, int);
void siglongjmp (sigjmp_buf, int);
#endif