aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2014-09-15 01:35:34 +0800
committerhrs <hrs@FreeBSD.org>2014-09-15 01:35:34 +0800
commit885e29787a4d68255f859b9759989d04a46e7cf1 (patch)
treee33cba1cd258a57a14d751cdab39e9b3e9613e35
parentf95712134ed581a7984a7e2ac9ad7a18d218463f (diff)
downloadfreebsd-ports-gnome-885e29787a4d68255f859b9759989d04a46e7cf1.tar.gz
freebsd-ports-gnome-885e29787a4d68255f859b9759989d04a46e7cf1.tar.zst
freebsd-ports-gnome-885e29787a4d68255f859b9759989d04a46e7cf1.zip
Fix build on branches with GCC 4.2.1.
-rw-r--r--x11-wm/libwraster/files/patch-wrlib__wraster.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/x11-wm/libwraster/files/patch-wrlib__wraster.h b/x11-wm/libwraster/files/patch-wrlib__wraster.h
index b87f186b58bd..8161430594bc 100644
--- a/x11-wm/libwraster/files/patch-wrlib__wraster.h
+++ b/x11-wm/libwraster/files/patch-wrlib__wraster.h
@@ -1,11 +1,17 @@
---- wrlib/wraster.h.orig 2014-09-09 16:49:44 UTC
-+++ wrlib/wraster.h
-@@ -61,7 +61,7 @@
+--- wrlib/wraster.h.orig 2014-08-30 21:29:09.000000000 +0900
++++ wrlib/wraster.h 2014-09-15 02:31:40.000000000 +0900
+@@ -61,7 +61,13 @@
* mechanism and define an internal macro appropriately. Please note that the macro are not considered being
* part of the public API.
*/
-#if __GNUC__ >= 3
-+#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 5) || __has_extension(attribute_deprecated_with_message)
++#ifndef __has_feature
++#define __has_feature(x) 0
++#endif
++#ifndef __has_extension
++#define __has_extension __has_feature
++#endif
++#if __has_extension(attribute_deprecated_with_message)
#define __wrlib_deprecated(msg) __attribute__ ((deprecated(msg)))
#else
#define __wrlib_deprecated(msg)