cannelloni: needs dynamic library
[buildroot-gz.git] / package / ltp-testsuite / 0001-fix-uClibc-build.patch
blob231bc8332418ecd2bb0ff11dc20cdc78371aa63f
1 O_DIRECTORY is only available if _GNU_SOURCE is defined
3 https://github.com/linux-test-project/ltp/pull/58
5 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
7 diff -Nur ltp-full-20160126.orig/testcases/kernel/syscalls/fanotify/fanotify01.c ltp-full-20160126/testcases/kernel/syscalls/fanotify/fanotify01.c
8 --- ltp-full-20160126.orig/testcases/kernel/syscalls/fanotify/fanotify01.c 2016-01-26 13:35:25.000000000 +0100
9 +++ ltp-full-20160126/testcases/kernel/syscalls/fanotify/fanotify01.c 2016-03-05 00:55:02.977264913 +0100
10 @@ -25,6 +25,7 @@
11 * DESCRIPTION
12 * Check that fanotify work for a file
14 +#define _GNU_SOURCE
15 #include "config.h"
17 #include <stdio.h>
18 diff -Nur ltp-full-20160126.orig/testcases/kernel/syscalls/fanotify/fanotify02.c ltp-full-20160126/testcases/kernel/syscalls/fanotify/fanotify02.c
19 --- ltp-full-20160126.orig/testcases/kernel/syscalls/fanotify/fanotify02.c 2016-01-26 13:35:25.000000000 +0100
20 +++ ltp-full-20160126/testcases/kernel/syscalls/fanotify/fanotify02.c 2016-03-05 00:54:44.600558612 +0100
21 @@ -25,6 +25,7 @@
22 * DESCRIPTION
23 * Check that fanotify work for children of a directory
25 +#define _GNU_SOURCE
26 #include "config.h"
28 #include <stdio.h>
29 diff -Nur ltp-full-20160126.orig/testcases/kernel/syscalls/fanotify/fanotify03.c ltp-full-20160126/testcases/kernel/syscalls/fanotify/fanotify03.c
30 --- ltp-full-20160126.orig/testcases/kernel/syscalls/fanotify/fanotify03.c 2016-01-26 13:35:25.000000000 +0100
31 +++ ltp-full-20160126/testcases/kernel/syscalls/fanotify/fanotify03.c 2016-03-05 00:55:13.917685403 +0100
32 @@ -25,6 +25,7 @@
33 * DESCRIPTION
34 * Check that fanotify permission events work
36 +#define _GNU_SOURCE
37 #include "config.h"
39 #include <stdio.h>
40 diff -Nur ltp-full-20160126.orig/testcases/kernel/syscalls/fanotify/fanotify04.c ltp-full-20160126/testcases/kernel/syscalls/fanotify/fanotify04.c
41 --- ltp-full-20160126.orig/testcases/kernel/syscalls/fanotify/fanotify04.c 2016-01-26 13:35:25.000000000 +0100
42 +++ ltp-full-20160126/testcases/kernel/syscalls/fanotify/fanotify04.c 2016-03-05 00:55:24.530093286 +0100
43 @@ -25,6 +25,8 @@
44 * DESCRIPTION
45 * Check various fanotify special flags
48 +#define _GNU_SOURCE
49 #include "config.h"
51 #include <stdio.h>