This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fixed minor typo in delta
[perl5.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}++;
     } 
 }