aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/m4/lib/c-stack.c
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-10-17 00:00:54 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-10-17 00:13:54 +0300
commit2df4b129dd68baee2d2182d268211e63bbc24c4c (patch)
tree31cfd7d386d188a3f0d716b7a91c016ad7f5fec5 /contrib/tools/m4/lib/c-stack.c
parent77bb438c9af7813276c59aac06d76ae6148cd071 (diff)
downloadydb-2df4b129dd68baee2d2182d268211e63bbc24c4c.tar.gz
Revert more patches applied to contrib/tools/m4
commit_hash:fb87ade017a656215b6a71fc4504fb2c07c3b370
Diffstat (limited to 'contrib/tools/m4/lib/c-stack.c')
-rw-r--r--contrib/tools/m4/lib/c-stack.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/contrib/tools/m4/lib/c-stack.c b/contrib/tools/m4/lib/c-stack.c
index 52e46f83de..ac0aacba66 100644
--- a/contrib/tools/m4/lib/c-stack.c
+++ b/contrib/tools/m4/lib/c-stack.c
@@ -52,10 +52,6 @@ typedef struct sigaltstack stack_t;
#endif
#ifndef SIGSTKSZ
# define SIGSTKSZ 16384
-#elif defined __USE_DYNAMIC_STACK_SIZE
-/* Redefining SIGSTKSZ here as dynamic stack size is not supported in this version of bison */
-# undef SIGSTKSZ
-# define SIGSTKSZ 16384
#elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
/* libsigsegv 2.6 through 2.8 have a bug where some architectures use
more than the Linux default of an 8k alternate stack when deciding
@@ -76,7 +72,7 @@ typedef struct sigaltstack stack_t;
#include <unistd.h>
#if HAVE_LIBSIGSEGV
-# include <sigsegv.h>
+# error #include <sigsegv.h>
#endif
#include "c-stack.h"
@@ -327,10 +323,7 @@ c_stack_action (void (*action) (int))
int
c_stack_action (void (*action) (int) __attribute__ ((unused)))
{
-#if (defined _MSC_VER) && (_MSC_VER < 1800)
-#else
errno = ENOTSUP;
-#endif
return -1;
}