aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp/ltp/0039-fcntl-fix-the-time-def-to-use-time_t.patch
blob: c0c1dadd05b37703dac69c9a89a4551ba07d6bf0 (plain)
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
From 7bce3d223494803cb32897cabe66119076e53d89 Mon Sep 17 00:00:00 2001
From: Dengke Du <dengke.du@windriver.com>
Date: Wed, 8 Feb 2017 16:23:51 +0800
Subject: [PATCH 5/5] fcntl: fix the time() def to use time_t

This fixes the build on X32, where long is 32-bit rather than 64-bit.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Dengke Du <dengke.du@windriver.com>
---
 testcases/kernel/syscalls/fcntl/fcntl14.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/fcntl/fcntl14.c b/testcases/kernel/syscalls/fcntl/fcntl14.c
index c61eb24..99e3867 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl14.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl14.c
@@ -775,7 +775,7 @@ void dochild(void)
 
 void run_test(int file_flag, int file_mode, int seek, int start, int end)
 {
-	extern long time();
+	extern time_t time();
 
 	fail = 0;
 
-- 
2.7.4