diff --git a/gdbsupport/ChangeLog b/gdbsupport/ChangeLog index 78fbbe65c70..b071049ae73 100644 --- a/gdbsupport/ChangeLog +++ b/gdbsupport/ChangeLog @@ -1,3 +1,7 @@ +2020-04-27 Simon Marchi + + * common-defs.h: Include cstdlib.h. + 2020-04-20 Tom Tromey * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept. diff --git a/gdbsupport/common-defs.h b/gdbsupport/common-defs.h index e42d2b80c04..d3f5eafa455 100644 --- a/gdbsupport/common-defs.h +++ b/gdbsupport/common-defs.h @@ -84,7 +84,12 @@ #include #include + +/* Include both cstdlib and stdlib.h to ensure we have standard functions + defined both in the std:: namespace and in the global namespace. */ +#include #include + #include #include #include