mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-17 06:32:36 +01:00
19 lines
560 B
Diff
19 lines
560 B
Diff
--- 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
|