1
0
mirror of https://github.com/simh/simh.git synced 2026-02-27 09:09:46 +00:00

3b2: Remove glibc-specific longjmp

At one point in the distant past, there was an unremembered
reason to prefer __libc_longjmp if it was available. It is no
longer needed, and has been removed from glibc in the most recent
versions.

Fixes #1088.
This commit is contained in:
Seth Morabito
2021-10-23 14:32:10 -07:00
parent 525215b07e
commit 74021166d3

View File

@@ -54,12 +54,6 @@
#define noret void
#endif
#if defined(__GLIBC__) && !defined(__cplusplus)
/* use glibc internal longjmp to bypass fortify checks */
noret __libc_longjmp(jmp_buf buf, int val);
#define longjmp __libc_longjmp
#endif
#ifndef MAX
#define MAX(x, y) ((x) > (y) ? (x) : (y))
#endif