summaryrefslogtreecommitdiff
path: root/include/setjmp.h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-06-22 22:20:20 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-06-22 23:47:24 +0200
commit58a5ba12bffad5916d9897c2870fc483f1db8282 (patch)
tree5a8f178deea7839831d275f968254fd9b944a4dd /include/setjmp.h
parentcdc93474623ced1357303ef2ac8e96b65d37615d (diff)
remove __FAVOR_BSD
Remove __FAVOR_BSD and sync with GNU C library Some issues compiling knock application fixed. Reported-By: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'include/setjmp.h')
-rw-r--r--include/setjmp.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/setjmp.h b/include/setjmp.h
index 71c1d35cb..27cac9500 100644
--- a/include/setjmp.h
+++ b/include/setjmp.h
@@ -59,21 +59,13 @@ __END_NAMESPACE_STD
extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask)
__THROWNL;
-#ifndef __FAVOR_BSD
/* Store the calling environment in ENV, not saving the signal mask.
Return 0. */
extern int _setjmp (struct __jmp_buf_tag __env[1]) __THROWNL;
/* Do not save the signal mask. This is equivalent to the `_setjmp'
BSD function. */
-# define setjmp(env) _setjmp (env)
-#else
-/* We are in 4.3 BSD-compatibility mode in which `setjmp'
- saves the signal mask like `sigsetjmp (ENV, 1)'. We have to
- define a macro since ISO C says `setjmp' is one. */
-# define setjmp(env) setjmp (env)
-#endif /* Favor BSD. */
-
+#define setjmp(env) _setjmp (env)
__BEGIN_NAMESPACE_STD