diff options
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | m4/sigaltstack.m4 | 4 | ||||
-rw-r--r-- | packaging/diffutils.spec | 1 |
3 files changed, 9 insertions, 0 deletions
@@ -38002,8 +38002,12 @@ static void check_stack_location (volatile char *addr) } static void stackoverflow_handler (int sig) { +#if __GNUC__ >= 4 + check_stack_location (__builtin_frame_address(0)); +#else char dummy; check_stack_location (&dummy); +#endif } char mystack[2 * (1 << 24)]; int main () diff --git a/m4/sigaltstack.m4 b/m4/sigaltstack.m4 index 03180fc..4c68c31 100644 --- a/m4/sigaltstack.m4 +++ b/m4/sigaltstack.m4 @@ -151,8 +151,12 @@ static void check_stack_location (volatile char *addr) } static void stackoverflow_handler (int sig) { +#if __GNUC__ >= 4 + check_stack_location (__builtin_frame_address(0)); +#else char dummy; check_stack_location (&dummy); +#endif } char mystack[2 * (1 << 24)]; int main () diff --git a/packaging/diffutils.spec b/packaging/diffutils.spec index a4e20de..aa3ce9e 100644 --- a/packaging/diffutils.spec +++ b/packaging/diffutils.spec @@ -8,6 +8,7 @@ Group: System/Utilities Source: %{name}-%{version}.tar.xz Source1001: diffutils.manifest BuildRequires: xz +BuildRequires: makeinfo Provides: diff = %{version} Obsoletes: diff < %{version} |