diff options
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0039-fcntl-fix-the-time-def-to-use-time_t.patch')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0039-fcntl-fix-the-time-def-to-use-time_t.patch | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0039-fcntl-fix-the-time-def-to-use-time_t.patch b/meta/recipes-extended/ltp/ltp/0039-fcntl-fix-the-time-def-to-use-time_t.patch index f7e805a954..c0c1dadd05 100644 --- a/meta/recipes-extended/ltp/ltp/0039-fcntl-fix-the-time-def-to-use-time_t.patch +++ b/meta/recipes-extended/ltp/ltp/0039-fcntl-fix-the-time-def-to-use-time_t.patch | |||
@@ -1,28 +1,29 @@ | |||
1 | From 9590d073d3abe02fe0783ef8c530aef2e873ba9b Mon Sep 17 00:00:00 2001 | 1 | From 7bce3d223494803cb32897cabe66119076e53d89 Mon Sep 17 00:00:00 2001 |
2 | From: Christopher Larson <chris_larson@mentor.com> | 2 | From: Dengke Du <dengke.du@windriver.com> |
3 | Date: Tue, 13 Dec 2016 12:48:29 -0700 | 3 | Date: Wed, 8 Feb 2017 16:23:51 +0800 |
4 | Subject: [PATCH] fcntl: fix the time() def to use time_t | 4 | Subject: [PATCH 5/5] fcntl: fix the time() def to use time_t |
5 | 5 | ||
6 | This fixes the build on X32, where long is 32-bit rather than 64-bit. | 6 | This fixes the build on X32, where long is 32-bit rather than 64-bit. |
7 | 7 | ||
8 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> | 8 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> |
9 | Signed-off-by: Dengke Du <dengke.du@windriver.com> | ||
9 | --- | 10 | --- |
10 | testcases/kernel/syscalls/fcntl/fcntl14.c | 2 +- | 11 | testcases/kernel/syscalls/fcntl/fcntl14.c | 2 +- |
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
12 | 13 | ||
13 | diff --git a/testcases/kernel/syscalls/fcntl/fcntl14.c b/testcases/kernel/syscalls/fcntl/fcntl14.c | 14 | diff --git a/testcases/kernel/syscalls/fcntl/fcntl14.c b/testcases/kernel/syscalls/fcntl/fcntl14.c |
14 | index 3b36572..65ac8fa 100644 | 15 | index c61eb24..99e3867 100644 |
15 | --- a/testcases/kernel/syscalls/fcntl/fcntl14.c | 16 | --- a/testcases/kernel/syscalls/fcntl/fcntl14.c |
16 | +++ b/testcases/kernel/syscalls/fcntl/fcntl14.c | 17 | +++ b/testcases/kernel/syscalls/fcntl/fcntl14.c |
17 | @@ -789,7 +789,7 @@ void dochild(void) | 18 | @@ -775,7 +775,7 @@ void dochild(void) |
18 | 19 | ||
19 | void run_test(int file_flag, int file_mode, int seek, int start, int end) | 20 | void run_test(int file_flag, int file_mode, int seek, int start, int end) |
20 | { | 21 | { |
21 | - extern long time(); | 22 | - extern long time(); |
22 | + extern time_t time(); | 23 | + extern time_t time(); |
23 | 24 | ||
24 | /* reset fail to 0 for each run_test call */ | ||
25 | fail = 0; | 25 | fail = 0; |
26 | |||
26 | -- | 27 | -- |
27 | 2.8.0 | 28 | 2.7.4 |
28 | 29 | ||