From: Simon Marchi Date: Thu, 25 Jul 2024 17:41:36 +0000 (-0400) Subject: gdbsupport: remove #ifndef REALTIME_LO in signals.cc X-Git-Tag: gdb-16-branchpoint~1186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=554822d670c6272fe991c5fcbdfb41433b182b9e;p=thirdparty%2Fbinutils-gdb.git gdbsupport: remove #ifndef REALTIME_LO in signals.cc REALTIME_LO was only possibly previously defined in config/nm-nto.h, which is now removed. So we can remove the #ifndef protecting against a redefinition of REALTIME_LO in gdbsupport/signals.cc. Change-Id: I021b9518ceaa6223bd480ff1e07e9a978b0b241e Approved-by: Kevin Buettner --- diff --git a/gdbsupport/signals.cc b/gdbsupport/signals.cc index 4989b3fc28b..2cf641bd9e2 100644 --- a/gdbsupport/signals.cc +++ b/gdbsupport/signals.cc @@ -30,14 +30,12 @@ struct gdbarch; _available_ realtime signal, not the lowest supported; glibc takes several for its own use. */ -#ifndef REALTIME_LO -# if defined(__SIGRTMIN) -# define REALTIME_LO __SIGRTMIN -# define REALTIME_HI (__SIGRTMAX + 1) -# elif defined(SIGRTMIN) -# define REALTIME_LO SIGRTMIN -# define REALTIME_HI (SIGRTMAX + 1) -# endif +#if defined(__SIGRTMIN) +# define REALTIME_LO __SIGRTMIN +# define REALTIME_HI (__SIGRTMAX + 1) +#elif defined(SIGRTMIN) +# define REALTIME_LO SIGRTMIN +# define REALTIME_HI (SIGRTMAX + 1) #endif /* This table must match in order and size the signals in enum