Revision: 14577
Author: adrian.chadd
Date: Sat Apr 10 19:51:02 2010
Log: Issue #94 - fix truncate to compile; enable it always
http://code.google.com/p/lusca-cache/source/detail?r=14577
Modified:
/branches/LUSCA_HEAD/lib/win32lib.c
=======================================
--- /branches/LUSCA_HEAD/lib/win32lib.c Sat Apr 10 19:41:00 2010
+++ /branches/LUSCA_HEAD/lib/win32lib.c Sat Apr 10 19:51:02 2010
@@ -50,6 +50,7 @@
#include <windows.h>
#include <string.h>
#include <sys/timeb.h>
+#include <sys/fcntl.h>
#if HAVE_WIN32_PSAPI
#include <psapi.h>
#endif
@@ -370,7 +371,6 @@
return 0;
}
-#if USE_TRUNCATE
int
WIN32_ftruncate(int fd, off_t size)
{
@@ -398,7 +398,7 @@
if ((size64.LowPart == INVALID_SET_FILE_POINTER) && ((error =
GetLastError()) != NO_ERROR))
goto WIN32_ftruncate_error;
else if (!SetEndOfFile(file)) {
- int error = GetLastError();
+ error = GetLastError();
goto WIN32_ftruncate_error;
}
return 0;
@@ -433,7 +433,6 @@
return res;
}
-#endif
struct passwd *
getpwnam(char *unused)
--
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en.