Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonylambiris/8a4674c6f0619d5dc516430e95a53e99 to your computer and use it in GitHub Desktop.
Save tonylambiris/8a4674c6f0619d5dc516430e95a53e99 to your computer and use it in GitHub Desktop.
Add conditionals for swig perl bug workaround patch
diff --git a/bindings/solv.i b/bindings/solv.i
index 043c5491..354cde70 100644
--- a/bindings/solv.i
+++ b/bindings/solv.i
@@ -330,7 +330,8 @@ typedef struct {
#if defined(SWIGPERL)
-/* work around a swig bug */
+/* work around a swig bug for swig versions < 2.0.5 */
+#if SWIG_VERSION < 0x020005
%{
#undef SWIG_CALLXS
#ifdef PERL_OBJECT
@@ -343,6 +344,7 @@ typedef struct {
# endif
#endif
%}
+#endif
%define perliter(class)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment