summaryrefslogtreecommitdiff
path: root/devel/libexplain/files/patch-codegen__ioctl_scan.c
diff options
context:
space:
mode:
authorDanilo Egea Gondolfo <danilo@FreeBSD.org>2013-12-22 00:21:49 +0000
committerDanilo Egea Gondolfo <danilo@FreeBSD.org>2013-12-22 00:21:49 +0000
commite3c3b5d6f2f13764713ee7ceaa8f5ff72bdbb9a0 (patch)
treed1135398d71cbe403ca843faf836a5ed74f0b260 /devel/libexplain/files/patch-codegen__ioctl_scan.c
parent- Stage support (diff)
- Update from 1.2 to 1.3 patch level D012
PR: ports/184885 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Notes
Notes: svn path=/head/; revision=337169
Diffstat (limited to 'devel/libexplain/files/patch-codegen__ioctl_scan.c')
-rw-r--r--devel/libexplain/files/patch-codegen__ioctl_scan.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/libexplain/files/patch-codegen__ioctl_scan.c b/devel/libexplain/files/patch-codegen__ioctl_scan.c
new file mode 100644
index 000000000000..fbece3a6ea78
--- /dev/null
+++ b/devel/libexplain/files/patch-codegen__ioctl_scan.c
@@ -0,0 +1,29 @@
+--- codegen/ioctl_scan.c.orig
++++ codegen/ioctl_scan.c
+@@ -40,6 +40,10 @@
+ #include <codegen/ioctl_scan.h>
+ #include <codegen/wrapper.h>
+
++#ifndef FTW_ACTIONRETVAL
++#define FTW_CONTINUE 0
++#endif
++
+
+ static void
+ regcomp_or_die(regex_t *preg, const char *regex, int cflags)
+@@ -306,6 +310,7 @@
+ {
+ (void)typeflag;
+ (void)ftwbuf;
++#ifdef FTW_ACTIONRETVAL
+ if (typeflag == FTW_D)
+ {
+ explain_output_error("walking %s\n", pathname);
+@@ -314,6 +319,7 @@
+ if (ends_with(pathname, "/.."))
+ return FTW_SKIP_SUBTREE;
+ }
++#endif
+ if (S_ISREG(st->st_mode) && ends_with(pathname , ".h"))
+ ioctl_scan_include(pathname);
+ return FTW_CONTINUE;