per Larry's idea, parse 1.2.3 as v1.2.3; C<require 5.6.0> and
[p5sagit/p5-mst-13.2.git] / h2pl / getioctlsizes
index b7d4a0d..403fffa 100644 (file)
@@ -3,7 +3,7 @@
 open (IOCTLS,'/usr/include/sys/ioctl.h') || die "ioctl open failed";
 
 while (<IOCTLS>) {
-    if (/^\s*#\s*define\s+\w+\s+_IO(R|W|WR)\(\w+,\s*\w+,\s*([^)]+)/) {
+    if (/^\s*#\s*define\s+\w+\s+_IO(R|W|WR)\('?\w+'?,\s*\w+,\s*([^)]+)/) {
        $need{$2}++;
     } 
 }