From 12ddc2ef4d5cf3caacf8bf17d1309c5a5fae3521 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: May 10 2021 10:28:53 +0000 Subject: Add vfrnav_externc.patch --- diff --git a/vfrnav.spec b/vfrnav.spec index c51a554..1f1ee98 100644 --- a/vfrnav.spec +++ b/vfrnav.spec @@ -8,6 +8,8 @@ URL: https://gitlab.com/tsailer/vfrnav/ Source0: https://gitlab.com/tsailer/vfrnav/-/archive/%{version}/%{name}-%{version}.tar.bz2 Patch0: vfrnav-gpsd10.patch Patch1: vfrnav-pqxx.patch +# Enclose gnome-bluetooth.h include in extern "C", otherwise undefined references occur +Patch2: vfrnav_externc.patch %bcond_without webservice %bcond_with wetterdl diff --git a/vfrnav_externc.patch b/vfrnav_externc.patch new file mode 100644 index 0000000..70f0147 --- /dev/null +++ b/vfrnav_externc.patch @@ -0,0 +1,13 @@ +diff -rupN vfrnav-20201231/src/prefs.cc vfrnav-20201231-new/src/prefs.cc +--- vfrnav-20201231/src/prefs.cc 2021-01-11 17:56:47.000000000 +0100 ++++ vfrnav-20201231-new/src/prefs.cc 2021-05-10 11:59:33.809251994 +0200 +@@ -33,7 +33,9 @@ extern "C" { + + #ifdef HAVE_GNOMEBT + //#include ++extern "C" { + #include ++} + #endif + + PrefsWindow::PrefsWindow(BaseObjectType * castitem, const Glib::RefPtr< Builder > & refxml)