summaryrefslogtreecommitdiff
path: root/packages/gdb/7.12.1/0006-duplicate-typedef.patch
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2019-03-17 18:37:43 (GMT)
committerGitHub <noreply@github.com>2019-03-17 18:37:43 (GMT)
commit89ba62fb1daad737cdb33c3b1ef69092beeaab0b (patch)
tree34ea6400ccf438cd9de5d42afe636fde0a011f50 /packages/gdb/7.12.1/0006-duplicate-typedef.patch
parentc4126d9397353a74ca5aff602dd2c0c527e1dd07 (diff)
parente4475c33df8702ec780f24ac482d5d9c2fc72d6d (diff)
Merge pull request #1163 from stilor/docker-fixescrosstool-ng-1.24.0-rc3
Fix build on CentOS6/7
Diffstat (limited to 'packages/gdb/7.12.1/0006-duplicate-typedef.patch')
-rw-r--r--packages/gdb/7.12.1/0006-duplicate-typedef.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/gdb/7.12.1/0006-duplicate-typedef.patch b/packages/gdb/7.12.1/0006-duplicate-typedef.patch
new file mode 100644
index 0000000..cbbc3e2
--- /dev/null
+++ b/packages/gdb/7.12.1/0006-duplicate-typedef.patch
@@ -0,0 +1,18 @@
+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.
+
+ Corollary tasks are the creation and deletion of event sources. */
++#ifndef _EVENT_LOOP_H_
++#define _EVENT_LOOP_H_
+
+ 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