aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp/ltp/0039-fcntl-fix-the-time-def-to-use-time_t.patch
blob: f7e805a9541a3f040ef2d3bcd50f7f806b9429a3 (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
From 9590d073d3abe02fe0783ef8c530aef2e873ba9b Mon Sep 17 00:00:00 2001
From: Christopher Larson <chris_larson@mentor.com>
Date: Tue, 13 Dec 2016 12:48:29 -0700
Subject: [PATCH] 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>
---
 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 3b36572..65ac8fa 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl14.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl14.c
@@ -789,7 +789,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();
 
 	/* reset fail to 0 for each run_test call */
 	fail = 0;
-- 
2.8.0