From: Tom Tromey Date: Tue, 7 May 2019 01:54:53 +0000 (-0600) Subject: Fix scoped_mmap includes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26bfd82367d6ffeb1a61495ac445542e757df5b2;p=binutils-gdb.git Fix scoped_mmap includes I noticed that scoped_mmap.h included config.h, and that scoped_mmap.c included defs.h. This patch fixes both of these problems. Tested by the buildbot. gdb/ChangeLog 2019-05-06 Tom Tromey * common/scoped_mmap.c: Include common-defs.h. * common/scoped_mmap.h: Don't include config.h. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 51aac88e8dc..4e702fa23aa 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-05-06 Tom Tromey + + * common/scoped_mmap.c: Include common-defs.h. + * common/scoped_mmap.h: Don't include config.h. + 2019-05-04 Tom Tromey * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC. diff --git a/gdb/common/scoped_mmap.c b/gdb/common/scoped_mmap.c index 1bd980c09a5..19175e4a919 100644 --- a/gdb/common/scoped_mmap.c +++ b/gdb/common/scoped_mmap.c @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "defs.h" +#include "common-defs.h" #include "scoped_mmap.h" #include "scoped_fd.h" #include "common/filestuff.h" diff --git a/gdb/common/scoped_mmap.h b/gdb/common/scoped_mmap.h index 0b504c96fec..05cca9efa7d 100644 --- a/gdb/common/scoped_mmap.h +++ b/gdb/common/scoped_mmap.h @@ -20,8 +20,6 @@ #ifndef COMMON_SCOPED_MMAP_H #define COMMON_SCOPED_MMAP_H -#include "config.h" - #ifdef HAVE_SYS_MMAN_H #include