mirror of
https://git.freebsd.org/ports.git
synced 2025-05-20 19:13:27 -04:00
- fixes build with -fcommon Backport of patch from Debian: From: Andreas Henriksson <andreas@fatal.se> Subject: Fix build with gcc 10 Bug-Debian: https://bugs.debian.org/957578 Forwarded: https://gitlab.gnome.org/GNOME/nautilus-python/-/merge_requests/7 Last-Update: 2020-05-11 Obtained from: https://sources.debian.org/src/nautilus-python/1.2.3-3/debian/patches/gcc10.patch/
28 lines
972 B
C
28 lines
972 B
C
--- src/nautilus-python.c.orig 2020-09-13 15:42:41 UTC
|
|
+++ src/nautilus-python.c
|
|
@@ -22,6 +22,7 @@
|
|
#endif
|
|
|
|
#include <Python.h>
|
|
+#define NO_IMPORT_PYGOBJECT //To avoid a multiple definition, nautilus-python-object.c also includes and does the import.
|
|
#include <pygobject.h>
|
|
#include <gmodule.h>
|
|
#include <gtk/gtk.h>
|
|
@@ -41,6 +42,17 @@ static gboolean nautilus_python_init_python(void);
|
|
|
|
static GArray *all_types = NULL;
|
|
|
|
+PyTypeObject *_PyGtkWidget_Type;
|
|
+PyTypeObject *_PyNautilusColumn_Type;
|
|
+PyTypeObject *_PyNautilusColumnProvider_Type;
|
|
+PyTypeObject *_PyNautilusInfoProvider_Type;
|
|
+PyTypeObject *_PyNautilusLocationWidgetProvider_Type;
|
|
+PyTypeObject *_PyNautilusMenu_Type;
|
|
+PyTypeObject *_PyNautilusMenuItem_Type;
|
|
+PyTypeObject *_PyNautilusMenuProvider_Type;
|
|
+PyTypeObject *_PyNautilusPropertyPage_Type;
|
|
+PyTypeObject *_PyNautilusPropertyPageProvider_Type;
|
|
+PyTypeObject *_PyNautilusOperationHandle_Type;
|
|
|
|
static inline gboolean
|
|
np_init_pygobject(void) {
|