Fix PR PR16445 - gdbserver build failure on x86.
[deliverable/binutils-gdb.git] / gdb / gdbserver / linux-x86-low.c
index 04fa3c9be2d238f78f1b639a78a60085cff025ea..e1daa7da7fe582ca62cd52fa66dcf68607cd9c1c 100644 (file)
 #include "i387-fp.h"
 #include "i386-low.h"
 #include "i386-xstate.h"
-#include "elf/common.h"
 
 #include "gdb_proc_service.h"
+/* Don't include elf/common.h if linux/elf.h got included by
+   gdb_proc_service.h.  */
+#ifndef ELFMAG0
+#include "elf/common.h"
+#endif
+
 #include "agent.h"
 #include "tdesc.h"
 #include "tracepoint.h"
This page took 0.02397 seconds and 4 git commands to generate.