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.
This commit is contained in:
parent
c0a57f1536
commit
26bfd82367
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue