summaryrefslogtreecommitdiff
path: root/devel/capstone/patches/patch-suite_fuzz_driverbin.c
blob: ff666fe5f0691e1e66f91fd859db6f2a735decfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-suite_fuzz_driverbin.c,v 1.1 2022/03/26 19:25:51 tnn Exp $

no d_type / DT_REG on SunOS, skip check.

--- suite/fuzz/driverbin.c.orig	2020-05-08 10:03:30.000000000 +0000
+++ suite/fuzz/driverbin.c
@@ -34,9 +34,11 @@ int main(int argc, char** argv)
 
     while((dir = readdir(d)) != NULL) {
         //opens the file, get its size, and reads it into a buffer
+#ifdef DT_REG
         if (dir->d_type != DT_REG) {
             continue;
         }
+#endif
 
         printf("Running %s\n", dir->d_name);
         fflush(stdout);