From 61e6445f2e92aca7ac135b7b996c85d18011d1d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Tue, 21 Aug 2007 23:05:48 +0000 Subject: [PATCH] compile fix for ubuntu, probably not generic enough git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19710 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/filetools.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp index 15ecce0a1b..8845451183 100644 --- a/src/support/filetools.cpp +++ b/src/support/filetools.cpp @@ -50,6 +50,9 @@ #include #include +// FIXME Availability? +#include // for utimbuf + #ifdef HAVE_UNISTD_H # include #endif @@ -1313,7 +1316,7 @@ uLong filetime(const char * f, tm_zip * tmzip, uLong * dt) #else #ifdef unix -uLong filetime(const char * f, tm_zip * tmzip, uLong * dt) +uLong filetime(const char * f, tm_zip * tmzip, uLong * /*dt*/) { int ret=0; struct stat s; /* results of stat() */ @@ -1481,8 +1484,8 @@ void change_file_date(const char * filename, uLong dosdate, tm_unz tmu_date) CloseHandle(hFile); #else #ifdef unix - struct utimbuf ut; - struct tm newdate; + utimbuf ut; + tm newdate; newdate.tm_sec = tmu_date.tm_sec; newdate.tm_min=tmu_date.tm_min;