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
This commit is contained in:
André Pönitz 2007-08-21 23:05:48 +00:00
parent 6973591797
commit 61e6445f2e

View File

@ -50,6 +50,9 @@
#include <fstream> #include <fstream>
#include <sstream> #include <sstream>
// FIXME Availability?
#include <utime.h> // for utimbuf
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
@ -1313,7 +1316,7 @@ uLong filetime(const char * f, tm_zip * tmzip, uLong * dt)
#else #else
#ifdef unix #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; int ret=0;
struct stat s; /* results of stat() */ 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); CloseHandle(hFile);
#else #else
#ifdef unix #ifdef unix
struct utimbuf ut; utimbuf ut;
struct tm newdate; tm newdate;
newdate.tm_sec = tmu_date.tm_sec; newdate.tm_sec = tmu_date.tm_sec;
newdate.tm_min=tmu_date.tm_min; newdate.tm_min=tmu_date.tm_min;