[1/2] sim: ppc: drop unnecessary config includes

Message ID 20210909010831.13078-1-vapier@gentoo.org
State New
Headers show
Series
  • [1/2] sim: ppc: drop unnecessary config includes
Related show

Commit Message

Tom Tromey via Gdb-patches Sept. 9, 2021, 1:08 a.m.
This file is compiled for the --host & --build system which leads to
including the configure generated config.h in both environments.
This obviously doesn't work when the two targets don't look alike at
all and can cause build failures here (e.g. a mingw host & a linux
build).  Since we don't actually need any config settings in this
very simple file, drop the includes entirely.
---
 sim/ppc/filter_filename.c | 4 ----
 1 file changed, 4 deletions(-)

-- 
2.33.0

Patch

diff --git a/sim/ppc/filter_filename.c b/sim/ppc/filter_filename.c
index b59ca21ca559..fb2457c0b2c2 100644
--- a/sim/ppc/filter_filename.c
+++ b/sim/ppc/filter_filename.c
@@ -17,10 +17,6 @@ 
  
     */
 
-/* This must come before any other includes.  */
-#include "defs.h"
-
-#include "ppc-config.h"
 #include "filter_filename.h"
 
 /* Shorten traces by eliminating the directory component to filenames.  */