]> granicus.if.org Git - strace/commitdiff
add missing bit of solaris patches
authorJohn Hughes <john@Calva.COM>
Wed, 7 Mar 2001 16:03:20 +0000 (16:03 +0000)
committerJohn Hughes <john@Calva.COM>
Wed, 7 Mar 2001 16:03:20 +0000 (16:03 +0000)
ChangeLog
file.c

index eeeda9fe86fe1bc023863c7d88c23653b6e49283..725141e042db5b776bc44dd40e73d69d6256d4fa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-07  John Hughes <john@Calva.COM>
+
+  * file.c: merge missing part of Harald Böhme's solaris patches,
+    was only declaring sys_{stat64,lstat64,fstat64} on linux!
+
 2001-03-07  John Hughes <john@Calva.COM>
 
   * svr4/dummy.h: fix multiple define warning on non LFS64 systems.
diff --git a/file.c b/file.c
index d2eac9c50db34a6b27d2261dd4248486cacb7746..f1c8f3ab69a0c97f91f5b57cf9dd445d5a206ac2 100644 (file)
--- a/file.c
+++ b/file.c
@@ -1,4 +1,5 @@
 /*
+#ifdef linux
  * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
  * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
  * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
@@ -892,7 +893,6 @@ struct tcb *tcp;
        return 0;
 }
 
-#ifdef linux
 int
 sys_stat64(tcp)
 struct tcb *tcp;
@@ -910,6 +910,7 @@ struct tcb *tcp;
 #endif
 }
 
+#ifdef linux
 # if !defined(IA64)
 int
 sys_oldstat(tcp)
@@ -938,7 +939,6 @@ struct tcb *tcp;
        return 0;
 }
 
-#ifdef linux
 int
 sys_fstat64(tcp)
 struct tcb *tcp;
@@ -955,6 +955,7 @@ struct tcb *tcp;
 #endif
 }
 
+#ifdef linux
 # if !defined(IA64)
 int
 sys_oldfstat(tcp)
@@ -983,7 +984,6 @@ struct tcb *tcp;
        return 0;
 }
 
-#ifdef linux
 int
 sys_lstat64(tcp)
 struct tcb *tcp;
@@ -1001,6 +1001,7 @@ struct tcb *tcp;
 #endif
 }
 
+#ifdef linux
 # if !defined(IA64)
 int
 sys_oldlstat(tcp)