summaryrefslogtreecommitdiff
path: root/devel/gobject-introspection/patches
diff options
context:
space:
mode:
authormartin <martin@pkgsrc.org>2012-02-15 16:42:36 +0000
committermartin <martin@pkgsrc.org>2012-02-15 16:42:36 +0000
commit04d21348b053e0127ccea59fedf647e683b9677b (patch)
tree4f9d8ed00632142f248fc9e73149c3cba97c3d7c /devel/gobject-introspection/patches
parent146109fe94e6f34670103179507ace1ee5568e5c (diff)
downloadpkgsrc-04d21348b053e0127ccea59fedf647e683b9677b.tar.gz
Make giscanner ignore the "volatile" variants of __asm{,__} as well.
Found by OBATA Akio, fixes PR pkg/46017.
Diffstat (limited to 'devel/gobject-introspection/patches')
-rw-r--r--devel/gobject-introspection/patches/patch-giscanner_scannerlexer.l13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/gobject-introspection/patches/patch-giscanner_scannerlexer.l b/devel/gobject-introspection/patches/patch-giscanner_scannerlexer.l
new file mode 100644
index 00000000000..aa469764006
--- /dev/null
+++ b/devel/gobject-introspection/patches/patch-giscanner_scannerlexer.l
@@ -0,0 +1,13 @@
+$NetBSD: patch-giscanner_scannerlexer.l,v 1.1 2012/02/15 16:42:36 martin Exp $
+
+--- giscanner/scannerlexer.l.orig 2011-06-10 17:36:50.000000000 +0200
++++ giscanner/scannerlexer.l 2012-02-15 16:10:33.000000000 +0100
+@@ -134,6 +134,8 @@
+ "," { return ','; }
+ "->" { return ARROW; }
+
++"__asm"[\t\f\v\r ]+"volatile" { if (!parse_ignored_macro()) REJECT; }
++"__asm__"[\t\f\v\r ]+"volatile" { if (!parse_ignored_macro()) REJECT; }
+ "__asm" { if (!parse_ignored_macro()) REJECT; }
+ "__asm__" { if (!parse_ignored_macro()) REJECT; }
+ "__attribute__" { if (!parse_ignored_macro()) REJECT; }