aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-05-06 19:54:53 -0600
committerTom Tromey <tom@tromey.com>2019-05-06 21:00:52 -0600
commit26bfd82367d6ffeb1a61495ac445542e757df5b2 (patch)
tree600fc610bc4370250ee7eada064b4652c5ec787f /gdb/common
parentc0a57f1536fceabe89c4e8100c7170f6dd8bab38 (diff)
downloadgdb-26bfd82367d6ffeb1a61495ac445542e757df5b2.zip
gdb-26bfd82367d6ffeb1a61495ac445542e757df5b2.tar.gz
gdb-26bfd82367d6ffeb1a61495ac445542e757df5b2.tar.bz2
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 <tom@tromey.com> * common/scoped_mmap.c: Include common-defs.h. * common/scoped_mmap.h: Don't include config.h.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/scoped_mmap.c2
-rw-r--r--gdb/common/scoped_mmap.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/gdb/common/scoped_mmap.c b/gdb/common/scoped_mmap.c
index 1bd980c..19175e4 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 <http://www.gnu.org/licenses/>. */
-#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 0b504c9..05cca9e 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 <sys/mman.h>