]> granicus.if.org Git - strace/commitdiff
Fix a problem with sys_lseek on x32
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 16 Apr 2012 15:41:13 +0000 (17:41 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 16 Apr 2012 15:41:13 +0000 (17:41 +0200)
* file.c (sys_lseek): Use MIPS-n32 variant also for x32

Signed-off-by: H.J. Lu <hongjiu.lu@intel.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
file.c

diff --git a/file.c b/file.c
index 58585f382edfa6269b05c9cbc68603a6f868dc37..5f3b506aacd6f4b119c7ffb80fea97a2e7793c49 100644 (file)
--- a/file.c
+++ b/file.c
@@ -501,7 +501,7 @@ static const struct xlat whence[] = {
        { 0,            NULL            },
 };
 
-#if defined(LINUX_MIPSN32)
+#if defined(LINUX_MIPSN32) || defined(X32)
 int
 sys_lseek(struct tcb *tcp)
 {