gdb/s390: Fix build breakage due to std::min/std::max usage without header

[...]
  .../gdb/s390-linux-nat.c: In function 'void s390_prepare_to_resume(lwp_info*)':
  .../gdb/s390-linux-nat.c:703:20: error: 'min' is not a member of 'std'
      watch_lo_addr = std::min (watch_lo_addr, area->lo_addr);
  [...]

gdb/ChangeLog:
2016-09-18  Pedro Alves  <palves@redhat.com>

	* s390-linux-nat.c: Include <algorithm>.
This commit is contained in:
Pedro Alves
2016-09-19 00:30:30 +01:00
parent 768adc05c4
commit 93689493b3
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2016-09-18 Pedro Alves <palves@redhat.com>
* s390-linux-nat.c: Include <algorithm>.
2016-09-18 Pedro Alves <palves@redhat.com>
* breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly

View File

@ -39,6 +39,7 @@
#include <sys/procfs.h>
#include <sys/ucontext.h>
#include <elf.h>
#include <algorithm>
/* Per-thread arch-specific data. */