Fix scoped_mmap includes
authorTom Tromey <tom@tromey.com>
Tue, 7 May 2019 01:54:53 +0000 (19:54 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 7 May 2019 03:00:52 +0000 (21:00 -0600)
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.

gdb/ChangeLog
gdb/common/scoped_mmap.c
gdb/common/scoped_mmap.h

index 51aac88e8dc0c41a6650f3b543cf844f5a3e2d5e..4e702fa23aa532a6c4d4c4e6c38662251df4727c 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2019-05-04  Tom Tromey  <tom@tromey.com>
 
        * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
index 1bd980c09a5bc9e7f7147e50056e5769a15a99b3..19175e4a919a8a2de2b8bd20cf6f73af64077167 100644 (file)
@@ -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"
index 0b504c96fec09300fa75476dced845b425fa0906..05cca9efa7da9138dedda982422e83f2d1a9684a 100644 (file)
@@ -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>