event-loop.h is included via other paths, too

... so instead add an include guard.

Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
Alexey Neyman 2019-03-14 12:06:34 -07:00
parent 8b8e6b4e5d
commit cbd9af9ac9
1 changed files with 15 additions and 13 deletions

View File

@ -1,16 +1,18 @@
---
gdb/top.h | 1 -
1 file changed, 1 deletion(-)
--- a/gdb/top.h
+++ b/gdb/top.h
@@ -21,7 +21,6 @@
#define TOP_H
diff -urpN gdb-7.12.1.orig/gdb/event-loop.h gdb-7.12.1/gdb/event-loop.h
--- gdb-7.12.1.orig/gdb/event-loop.h 2017-01-21 05:46:46.000000000 -0800
+++ gdb-7.12.1/gdb/event-loop.h 2019-03-14 11:55:56.280325742 -0700
@@ -66,6 +66,8 @@
infinite loop.
#include "buffer.h"
-#include "event-loop.h"
Corollary tasks are the creation and deletion of event sources. */
+#ifndef _EVENT_LOOP_H_
+#define _EVENT_LOOP_H_
struct tl_interp_info;
typedef void *gdb_client_data;
struct async_signal_handler;
@@ -127,3 +129,5 @@ extern void mark_async_event_handler (st
extern void clear_async_event_handler (struct async_event_handler *handler);
extern void initialize_async_signal_handlers (void);
+
+#endif