add missing bit of solaris patches
diff --git a/ChangeLog b/ChangeLog
index eeeda9f..725141e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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.
   * svr4/syscallent.h: pread/pwrite are TF calls.
 
diff --git a/file.c b/file.c
index d2eac9c..f1c8f3a 100644
--- 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 @@
 	return 0;
 }
 
-#ifdef linux
 int
 sys_stat64(tcp)
 struct tcb *tcp;
@@ -910,6 +910,7 @@
 #endif
 }
 
+#ifdef linux
 # if !defined(IA64)
 int
 sys_oldstat(tcp)
@@ -938,7 +939,6 @@
 	return 0;
 }
 
-#ifdef linux
 int
 sys_fstat64(tcp)
 struct tcb *tcp;
@@ -955,6 +955,7 @@
 #endif
 }
 
+#ifdef linux
 # if !defined(IA64)
 int
 sys_oldfstat(tcp)
@@ -983,7 +984,6 @@
 	return 0;
 }
 
-#ifdef linux
 int
 sys_lstat64(tcp)
 struct tcb *tcp;
@@ -1001,6 +1001,7 @@
 #endif
 }
 
+#ifdef linux
 # if !defined(IA64)
 int
 sys_oldlstat(tcp)