summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-11-19 13:13:07 -0800
committerJeff Brown <jeffbrown@google.com>2010-11-19 13:52:19 -0800
commita6210d061bb79e5c10ed88c99111df51e52e4472 (patch)
treec789bd306c908846fcfa1e8b6b74435daddc9974 /include
parent7ffd0871e6b8d7ab9443bef6e8b2a31674d1f623 (diff)
downloadframeworks_base-a6210d061bb79e5c10ed88c99111df51e52e4472.zip
frameworks_base-a6210d061bb79e5c10ed88c99111df51e52e4472.tar.gz
frameworks_base-a6210d061bb79e5c10ed88c99111df51e52e4472.tar.bz2
Fix SDK build on Windows due to use of mmap.
Change-Id: Id4bd9a6f932285c93c5853e540efc20b99876564
Diffstat (limited to 'include')
-rw-r--r--include/utils/Tokenizer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/utils/Tokenizer.h b/include/utils/Tokenizer.h
index bfe8923..21e58e6 100644
--- a/include/utils/Tokenizer.h
+++ b/include/utils/Tokenizer.h
@@ -19,6 +19,7 @@
#include <assert.h>
#include <utils/Errors.h>
+#include <utils/FileMap.h>
#include <utils/String8.h>
namespace android {
@@ -27,7 +28,7 @@ namespace android {
* A simple tokenizer for loading and parsing ASCII text files line by line.
*/
class Tokenizer {
- Tokenizer(const String8& filename, const char* buffer, size_t length);
+ Tokenizer(const String8& filename, FileMap* fileMap, const char* buffer, size_t length);
public:
~Tokenizer();
@@ -108,6 +109,7 @@ private:
Tokenizer(const Tokenizer& other); // not copyable
String8 mFilename;
+ FileMap* mFileMap;
const char* mBuffer;
size_t mLength;