From: Michael Tremer Date: Thu, 10 Jun 2021 16:58:11 +0000 (+0000) Subject: _pakfire: Avoid multiple definition of exceptions X-Git-Tag: 0.9.28~1280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ac805906b4da9d76984ef158916101c97af1f40;p=pakfire.git _pakfire: Avoid multiple definition of exceptions Signed-off-by: Michael Tremer --- diff --git a/src/_pakfire/_pakfiremodule.c b/src/_pakfire/_pakfiremodule.c index ca1dd09f1..f1f3e804b 100644 --- a/src/_pakfire/_pakfiremodule.c +++ b/src/_pakfire/_pakfiremodule.c @@ -37,6 +37,10 @@ #include "transaction.h" #include "util.h" +PyObject* PyExc_BadSignatureError; +PyObject* PyExc_CommandExecutionError; +PyObject* PyExc_DependencyError; + static PyObject* _pakfire_native_arch() { const char* arch = pakfire_arch_native(); if (!arch) diff --git a/src/_pakfire/errors.h b/src/_pakfire/errors.h index 76b94418a..52a52e896 100644 --- a/src/_pakfire/errors.h +++ b/src/_pakfire/errors.h @@ -24,8 +24,8 @@ #include // Exceptions -PyObject* PyExc_BadSignatureError; -PyObject* PyExc_CommandExecutionError; -PyObject* PyExc_DependencyError; +extern PyObject* PyExc_BadSignatureError; +extern PyObject* PyExc_CommandExecutionError; +extern PyObject* PyExc_DependencyError; #endif /* PYTHON_PAKFIRE_ERRORS_H */