Commit c865acf3 authored by eric@webkit.org's avatar eric@webkit.org

2010-05-04 Steve Block <steveblock@google.com>

        Reviewed by Darin Adler.

        New FileSystemPOSIX functions cause linker errors on Android
        https://bugs.webkit.org/show_bug.cgi?id=38521

        No new tests, build fix only.

        * platform/android/FileSystemAndroid.cpp: Remove closeFile, which is provided in FileSystemPOSIX.cpp
        * platform/posix/FileSystemPOSIX.cpp: Guard writeToFile with !PLATFORM(ANDROID)

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58774 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 966a8f39
2010-05-04 Steve Block <steveblock@google.com>
Reviewed by Darin Adler.
New FileSystemPOSIX functions cause linker errors on Android
https://bugs.webkit.org/show_bug.cgi?id=38521
No new tests, build fix only.
* platform/android/FileSystemAndroid.cpp: Remove closeFile, which is provided in FileSystemPOSIX.cpp
* platform/posix/FileSystemPOSIX.cpp: Guard writeToFile with !PLATFORM(ANDROID)
2010-05-04 Pavel Feldman <pfeldman@chromium.org>
Reviewed by Timothy Hatcher.
......@@ -75,14 +75,6 @@ bool unloadModule(PlatformModule module)
return !dlclose(module);
}
void closeFile(PlatformFileHandle& handle)
{
if (isHandleValid(handle)) {
close(handle);
handle = invalidPlatformFileHandle;
}
}
int writeToFile(PlatformFileHandle handle, const char* data, int length)
{
int totalBytesWritten = 0;
......
......@@ -110,6 +110,7 @@ bool truncateFile(PlatformFileHandle handle, long long offset)
return !ftruncate(handle, offset);
}
#if !PLATFORM(ANDROID)
int writeToFile(PlatformFileHandle handle, const char* data, int length)
{
do {
......@@ -119,6 +120,7 @@ int writeToFile(PlatformFileHandle handle, const char* data, int length)
} while (errno == EINTR);
return -1;
}
#endif
int readFromFile(PlatformFileHandle handle, char* data, int length)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment