|
|
c7d2242 |
From f58c435e4e4f5030af44d2cde8042bcf10d24615 Mon Sep 17 00:00:00 2001
|
|
|
c7d2242 |
From: Michal Fabik <mfabik@redhat.com>
|
|
|
c7d2242 |
Date: Tue, 28 Jan 2020 13:45:14 +0100
|
|
|
c7d2242 |
Subject: [PATCH] Fix build failure with gcc -fno-common
|
|
|
c7d2242 |
|
|
|
c7d2242 |
Signed-off-by: Michal Fabik <mfabik@redhat.com>
|
|
|
c7d2242 |
---
|
|
|
c7d2242 |
src/configuration-gui/abrt-config-widget.c | 2 +-
|
|
|
c7d2242 |
src/dbus/abrt_problems2_service.c | 4 ++--
|
|
|
c7d2242 |
src/dbus/abrt_problems2_service.h | 8 ++++----
|
|
|
c7d2242 |
src/dbus/abrt_problems2_session.c | 2 +-
|
|
|
c7d2242 |
src/dbus/abrt_problems2_task.c | 2 +-
|
|
|
c7d2242 |
src/plugins/oops-utils.c | 2 ++
|
|
|
c7d2242 |
src/plugins/oops-utils.h | 2 +-
|
|
|
c7d2242 |
src/plugins/xorg-utils.c | 2 ++
|
|
|
c7d2242 |
src/plugins/xorg-utils.h | 2 +-
|
|
|
c7d2242 |
9 files changed, 15 insertions(+), 11 deletions(-)
|
|
|
c7d2242 |
|
|
|
c7d2242 |
diff --git a/src/configuration-gui/abrt-config-widget.c b/src/configuration-gui/abrt-config-widget.c
|
|
|
c7d2242 |
index aa3b5c01b..518ecd1d0 100644
|
|
|
c7d2242 |
--- a/src/configuration-gui/abrt-config-widget.c
|
|
|
c7d2242 |
+++ b/src/configuration-gui/abrt-config-widget.c
|
|
|
c7d2242 |
@@ -109,7 +109,7 @@ G_DEFINE_TYPE_WITH_PRIVATE(AbrtConfigWidget, abrt_config_widget, GTK_TYPE_BOX)
|
|
|
c7d2242 |
enum {
|
|
|
c7d2242 |
SN_CHANGED,
|
|
|
c7d2242 |
SN_LAST_SIGNAL
|
|
|
c7d2242 |
-} SignalNumber;
|
|
|
c7d2242 |
+};
|
|
|
c7d2242 |
|
|
|
c7d2242 |
static guint s_signals[SN_LAST_SIGNAL] = { 0 };
|
|
|
c7d2242 |
|
|
|
c7d2242 |
diff --git a/src/dbus/abrt_problems2_service.c b/src/dbus/abrt_problems2_service.c
|
|
|
c7d2242 |
index a0d2a3ce6..a1e7ae322 100644
|
|
|
c7d2242 |
--- a/src/dbus/abrt_problems2_service.c
|
|
|
c7d2242 |
+++ b/src/dbus/abrt_problems2_service.c
|
|
|
c7d2242 |
@@ -1589,7 +1589,7 @@ AbrtP2Object *abrt_p2_service_get_entry_object(AbrtP2Service *service,
|
|
|
c7d2242 |
|
|
|
c7d2242 |
AbrtP2Object *abrt_p2_service_get_entry_for_problem(AbrtP2Service *service,
|
|
|
c7d2242 |
const char *problem_id,
|
|
|
c7d2242 |
- int flags,
|
|
|
c7d2242 |
+ AbrtP2ServiceEntryLookupFlags flags,
|
|
|
c7d2242 |
GError **error)
|
|
|
c7d2242 |
{
|
|
|
c7d2242 |
char *entry_path = entry_object_dir_name_to_path(problem_id);
|
|
|
c7d2242 |
@@ -2062,7 +2062,7 @@ GVariant *abrt_p2_service_callers_session(AbrtP2Service *service,
|
|
|
c7d2242 |
|
|
|
c7d2242 |
GVariant *abrt_p2_service_get_problems(AbrtP2Service *service,
|
|
|
c7d2242 |
uid_t caller_uid,
|
|
|
c7d2242 |
- gint32 flags,
|
|
|
c7d2242 |
+ AbrtP2ServiceGetProblemsFlags flags,
|
|
|
c7d2242 |
GVariant *options,
|
|
|
c7d2242 |
GError **error)
|
|
|
c7d2242 |
{
|
|
|
c7d2242 |
diff --git a/src/dbus/abrt_problems2_service.h b/src/dbus/abrt_problems2_service.h
|
|
|
c7d2242 |
index f82cf503a..22b97a6e8 100644
|
|
|
c7d2242 |
--- a/src/dbus/abrt_problems2_service.h
|
|
|
c7d2242 |
+++ b/src/dbus/abrt_problems2_service.h
|
|
|
c7d2242 |
@@ -86,14 +86,14 @@ GVariant *abrt_p2_service_entry_problem_data(AbrtP2Service *service,
|
|
|
c7d2242 |
GError **error);
|
|
|
c7d2242 |
|
|
|
c7d2242 |
|
|
|
c7d2242 |
-enum {
|
|
|
c7d2242 |
+typedef enum {
|
|
|
c7d2242 |
ABRT_P2_SERVICE_ENTRY_LOOKUP_NOFLAGS = 0x0, ///< return with error if not found
|
|
|
c7d2242 |
ABRT_P2_SERVICE_ENTRY_LOOKUP_OPTIONAL = 0x1, ///< return NULL if not found
|
|
|
c7d2242 |
-} AbrtP2ServiceEntryLookupFlag;
|
|
|
c7d2242 |
+} AbrtP2ServiceEntryLookupFlags;
|
|
|
c7d2242 |
|
|
|
c7d2242 |
AbrtP2Object *abrt_p2_service_get_entry_for_problem(AbrtP2Service *service,
|
|
|
c7d2242 |
const char *problem_id,
|
|
|
c7d2242 |
- int flags,
|
|
|
c7d2242 |
+ AbrtP2ServiceEntryLookupFlags flags,
|
|
|
c7d2242 |
GError **error);
|
|
|
c7d2242 |
|
|
|
c7d2242 |
struct _AbrtP2Entry;
|
|
|
c7d2242 |
@@ -145,7 +145,7 @@ typedef enum
|
|
|
c7d2242 |
|
|
|
c7d2242 |
GVariant *abrt_p2_service_get_problems(AbrtP2Service *service,
|
|
|
c7d2242 |
uid_t caller_uid,
|
|
|
c7d2242 |
- gint32 flags,
|
|
|
c7d2242 |
+ AbrtP2ServiceGetProblemsFlags flags,
|
|
|
c7d2242 |
GVariant *options,
|
|
|
c7d2242 |
GError **error);
|
|
|
c7d2242 |
|
|
|
c7d2242 |
diff --git a/src/dbus/abrt_problems2_session.c b/src/dbus/abrt_problems2_session.c
|
|
|
c7d2242 |
index 96db4ccc5..85ee78887 100644
|
|
|
c7d2242 |
--- a/src/dbus/abrt_problems2_session.c
|
|
|
c7d2242 |
+++ b/src/dbus/abrt_problems2_session.c
|
|
|
c7d2242 |
@@ -97,7 +97,7 @@ struct check_auth_cb_params
|
|
|
c7d2242 |
enum {
|
|
|
c7d2242 |
SN_AUTHORIZATION_CHANGED,
|
|
|
c7d2242 |
SN_LAST_SIGNAL
|
|
|
c7d2242 |
-} SignalNumber;
|
|
|
c7d2242 |
+};
|
|
|
c7d2242 |
|
|
|
c7d2242 |
static guint s_signals[SN_LAST_SIGNAL] = { 0 };
|
|
|
c7d2242 |
|
|
|
c7d2242 |
diff --git a/src/dbus/abrt_problems2_task.c b/src/dbus/abrt_problems2_task.c
|
|
|
c7d2242 |
index cba6b469a..e6ae171c7 100644
|
|
|
c7d2242 |
--- a/src/dbus/abrt_problems2_task.c
|
|
|
c7d2242 |
+++ b/src/dbus/abrt_problems2_task.c
|
|
|
c7d2242 |
@@ -21,7 +21,7 @@
|
|
|
c7d2242 |
enum {
|
|
|
c7d2242 |
SN_STATUS_CHANGED,
|
|
|
c7d2242 |
SN_LAST_SIGNAL
|
|
|
c7d2242 |
-} SignalNumber;
|
|
|
c7d2242 |
+};
|
|
|
c7d2242 |
|
|
|
c7d2242 |
static guint s_signals[SN_LAST_SIGNAL] = { 0 };
|
|
|
c7d2242 |
|
|
|
c7d2242 |
diff --git a/src/plugins/oops-utils.c b/src/plugins/oops-utils.c
|
|
|
c7d2242 |
index caa1d8d5d..a77b4424f 100644
|
|
|
c7d2242 |
--- a/src/plugins/oops-utils.c
|
|
|
c7d2242 |
+++ b/src/plugins/oops-utils.c
|
|
|
c7d2242 |
@@ -22,6 +22,8 @@
|
|
|
c7d2242 |
#include "oops-utils.h"
|
|
|
c7d2242 |
#include "libabrt.h"
|
|
|
c7d2242 |
|
|
|
c7d2242 |
+int g_abrt_oops_sleep_woke_up_on_signal;
|
|
|
c7d2242 |
+
|
|
|
c7d2242 |
int abrt_oops_process_list(GList *oops_list, const char *dump_location, const char *analyzer, int flags)
|
|
|
c7d2242 |
{
|
|
|
c7d2242 |
unsigned errors = 0;
|
|
|
c7d2242 |
diff --git a/src/plugins/oops-utils.h b/src/plugins/oops-utils.h
|
|
|
c7d2242 |
index 5181f91c7..bdd61cac2 100644
|
|
|
c7d2242 |
--- a/src/plugins/oops-utils.h
|
|
|
c7d2242 |
+++ b/src/plugins/oops-utils.h
|
|
|
c7d2242 |
@@ -33,7 +33,7 @@ enum {
|
|
|
c7d2242 |
ABRT_OOPS_PRINT_STDOUT = 1 << 2,
|
|
|
c7d2242 |
};
|
|
|
c7d2242 |
|
|
|
c7d2242 |
-int g_abrt_oops_sleep_woke_up_on_signal;
|
|
|
c7d2242 |
+extern int g_abrt_oops_sleep_woke_up_on_signal;
|
|
|
c7d2242 |
|
|
|
c7d2242 |
int abrt_oops_process_list(GList *oops_list, const char *dump_location, const char *analyzer, int flags);
|
|
|
c7d2242 |
unsigned abrt_oops_create_dump_dirs(GList *oops_list, const char *dump_location, const char *analyzer, int flags);
|
|
|
c7d2242 |
diff --git a/src/plugins/xorg-utils.c b/src/plugins/xorg-utils.c
|
|
|
c7d2242 |
index a8dfc512a..4ecf8cb63 100644
|
|
|
c7d2242 |
--- a/src/plugins/xorg-utils.c
|
|
|
c7d2242 |
+++ b/src/plugins/xorg-utils.c
|
|
|
c7d2242 |
@@ -23,6 +23,8 @@
|
|
|
c7d2242 |
|
|
|
c7d2242 |
#define DEFAULT_XORG_CRASH_REASON "Display server crashed"
|
|
|
c7d2242 |
|
|
|
c7d2242 |
+int g_abrt_xorg_sleep_woke_up_on_signal;
|
|
|
c7d2242 |
+
|
|
|
c7d2242 |
int abrt_xorg_signaled_sleep(int seconds)
|
|
|
c7d2242 |
{
|
|
|
c7d2242 |
sigset_t set;
|
|
|
c7d2242 |
diff --git a/src/plugins/xorg-utils.h b/src/plugins/xorg-utils.h
|
|
|
c7d2242 |
index c53bc460d..d9f44681a 100644
|
|
|
c7d2242 |
--- a/src/plugins/xorg-utils.h
|
|
|
c7d2242 |
+++ b/src/plugins/xorg-utils.h
|
|
|
c7d2242 |
@@ -35,7 +35,7 @@ enum {
|
|
|
c7d2242 |
ABRT_XORG_PRINT_STDOUT = 1 << 2,
|
|
|
c7d2242 |
};
|
|
|
c7d2242 |
|
|
|
c7d2242 |
-int g_abrt_xorg_sleep_woke_up_on_signal;
|
|
|
c7d2242 |
+extern int g_abrt_xorg_sleep_woke_up_on_signal;
|
|
|
c7d2242 |
int abrt_xorg_signaled_sleep(int seconds);
|
|
|
c7d2242 |
|
|
|
c7d2242 |
/*
|
|
|
c7d2242 |
--
|
|
|
c7d2242 |
2.24.1
|
|
|
c7d2242 |
|