File tree 2 files changed +31
-1
lines changed
2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 419
419
print_config " nolibc support" " $liburing_nolibc " ;
420
420
# ############################################################################
421
421
422
+ # ###################################################
423
+ # Most Android devices don't have sys/fanotify.h
424
+ has_fanotify=" no"
425
+ cat > $TMPC << EOF
426
+ #include <sys/fanotify.h>
427
+ int main(void)
428
+ {
429
+ return 0;
430
+ }
431
+ EOF
432
+ if compile_prog " " " " " fanotify" ; then
433
+ has_fanotify=" yes"
434
+ fi
435
+ print_config " has_fanotify" " $has_fanotify "
436
+ # ###################################################
437
+
422
438
if test " $liburing_nolibc " = " yes" ; then
423
439
output_sym " CONFIG_NOLIBC"
424
440
fi
452
468
if test " $nvme_uring_cmd " = " yes" ; then
453
469
output_sym " CONFIG_HAVE_NVME_URING"
454
470
fi
471
+ if test " $has_fanotify " = " yes" ; then
472
+ output_sym " CONFIG_HAVE_FANOTIFY"
473
+ fi
455
474
456
475
echo " CC=$cc " >> $config_host_mak
457
476
print_config " CC" " $cc "
Original file line number Diff line number Diff line change 2
2
/*
3
3
* Description: test fsnotify access off O_DIRECT read
4
4
*/
5
+
6
+ #include "helpers.h"
7
+
8
+ #ifdef CONFIG_HAVE_FANOTIFY
5
9
#include <stdio.h>
6
10
#include <stdlib.h>
7
11
#include <unistd.h>
11
15
#include <sys/wait.h>
12
16
13
17
#include "liburing.h"
14
- #include "helpers.h"
15
18
16
19
int main (int argc , char * argv [])
17
20
{
@@ -99,3 +102,11 @@ int main(int argc, char *argv[])
99
102
unlink (fname );
100
103
return err ;
101
104
}
105
+
106
+ #else /* #ifdef CONFIG_HAVE_FANOTIFY */
107
+
108
+ int main (void )
109
+ {
110
+ return T_EXIT_SKIP ;
111
+ }
112
+ #endif /* #ifdef CONFIG_HAVE_FANOTIFY */
You can’t perform that action at this time.
0 commit comments