aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-libvirt/musl-gnuc-prereq.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-16 02:48:47 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-02 01:43:47 +0000
commitaad2afe051973fa7fd6f4f9b83703c09445ff17c (patch)
tree4266144bb0c3984f784b0dd910d33fa98a72c353 /community/py3-libvirt/musl-gnuc-prereq.patch
parentaad758e364da9a69d0d519b619cc6eb2c7d150f8 (diff)
downloadaports-aad2afe051973fa7fd6f4f9b83703c09445ff17c.tar.bz2
aports-aad2afe051973fa7fd6f4f9b83703c09445ff17c.tar.xz
community/py3-*: move from main/ and modernize
Diffstat (limited to 'community/py3-libvirt/musl-gnuc-prereq.patch')
-rw-r--r--community/py3-libvirt/musl-gnuc-prereq.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/community/py3-libvirt/musl-gnuc-prereq.patch b/community/py3-libvirt/musl-gnuc-prereq.patch
new file mode 100644
index 0000000000..2e3c95e3f4
--- /dev/null
+++ b/community/py3-libvirt/musl-gnuc-prereq.patch
@@ -0,0 +1,18 @@
+--- libvirt-python-1.2.0.orig/libvirt-utils.h
++++ libvirt-python-1.2.0/libvirt-utils.h
+@@ -28,6 +28,15 @@
+ # define MIN(a,b) (((a) < (b)) ? (a) : (b))
+ # endif
+
++# ifndef __GNUC_PREREQ
++# if defined __GNUC__ && defined __GNUC_MINOR__
++# define __GNUC_PREREQ(maj, min) \
++ ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
++# else
++# define __GNUC_PREREQ(maj, min) 0
++# endif
++#endif
++
+ /**
+ * libvirt.h provides this as of version 1.2.0, but we want to be able
+ * to support older versions of libvirt so copy and paste the macro from