summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2019-03-14 19:06:34 (GMT)
committerAlexey Neyman <stilor@att.net>2019-03-14 19:06:34 (GMT)
commitcbd9af9ac97f50f13ea0e60daeb67e4a9cb85270 (patch)
tree27210ad93f2ef9a34210e15879518dc762c3f05c
parent8b8e6b4e5d1932268ac150688e619cef78b75999 (diff)
event-loop.h is included via other paths, too
... so instead add an include guard. Signed-off-by: Alexey Neyman <stilor@att.net>
-rw-r--r--packages/gdb/7.12.1/0006-duplicate-typedef.patch28
1 files changed, 15 insertions, 13 deletions
diff --git a/packages/gdb/7.12.1/0006-duplicate-typedef.patch b/packages/gdb/7.12.1/0006-duplicate-typedef.patch
index c718360..cbbc3e2 100644
--- a/packages/gdb/7.12.1/0006-duplicate-typedef.patch
+++ b/packages/gdb/7.12.1/0006-duplicate-typedef.patch
@@ -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