100-musl_fix.patch 637 B

12345678910111213141516171819202122232425262728
  1. --- a/gdb/linux-nat.c
  2. +++ b/gdb/linux-nat.c
  3. @@ -17,6 +17,7 @@
  4. You should have received a copy of the GNU General Public License
  5. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  6. +#include "stopcode.h"
  7. #include "defs.h"
  8. #include "inferior.h"
  9. #include "infrun.h"
  10. @@ -81,6 +82,10 @@
  11. # endif
  12. #endif /* HAVE_PERSONALITY */
  13. +#ifndef __SIGRTMIN
  14. +#define __SIGRTMIN SIGRTMIN
  15. +#endif
  16. +
  17. /* This comment documents high-level logic of this file.
  18. Waiting for events in sync mode
  19. --- /dev/null
  20. +++ b/gdb/stopcode.h
  21. @@ -0,0 +1,4 @@
  22. +#ifndef W_STOPCODE
  23. +#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
  24. +#endif
  25. +