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