From 58a5ba12bffad5916d9897c2870fc483f1db8282 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 22 Jun 2017 22:20:20 +0200 Subject: remove __FAVOR_BSD Remove __FAVOR_BSD and sync with GNU C library Some issues compiling knock application fixed. Reported-By: Thomas Petazzoni --- include/setjmp.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'include/setjmp.h') 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 -- cgit v1.2.3