summaryrefslogtreecommitdiff
path: root/lib/Input.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Input.cc')
-rw-r--r--lib/Input.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Input.cc b/lib/Input.cc
index c12c609..d81faef 100644
--- a/lib/Input.cc
+++ b/lib/Input.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: Input.cc,v 1.40 2003-12-26 23:51:33 pixel Exp $ */
+/* $Id: Input.cc,v 1.41 2004-01-22 22:48:40 pixel Exp $ */
#include <stdio.h>
#include <string.h>
@@ -107,10 +107,14 @@ Input::Input(const String & no) throw (GeneralException) :
fstat(GetHandle(), &s);
date_modif = s.st_mtime;
+#ifdef __linux__
if (S_ISREG(s.st_mode)) {
+#endif
size = seek(0, SEEK_END);
+#ifdef __linux__
seek(0, SEEK_SET);
}
+#endif
} else {
#ifdef DEBUG
printm(M_INFO, String(_("Opening file in archive, position ")) + results.ptr + "\n");