diff -Naur clucene-0.9.21b/tinycore/patches/01_add_missing_include_bug505667.diff clucene-0.9.21b_tinycore/tinycore/patches/01_add_missing_include_bug505667.diff
--- clucene-0.9.21b/tinycore/patches/01_add_missing_include_bug505667.diff	1970-01-01 00:00:00.000000000 +0000
+++ clucene-0.9.21b_tinycore/tinycore/patches/01_add_missing_include_bug505667.diff	2010-07-02 15:27:43.843011000 +0000
@@ -0,0 +1,10 @@
+--- a/src/CLucene/util/bufferedstream.h
++++ b/src/CLucene/util/bufferedstream.h
+@@ -29,6 +29,7 @@
+ #include "streambase.h"
+ #include "inputstreambuffer.h"
+ #include <cassert>
++#include <cstdio>
+ 
+ namespace jstreams {
+ 
diff -Naur clucene-0.9.21b/tinycore/patches/02_posixness_fix_bug530308.diff clucene-0.9.21b_tinycore/tinycore/patches/02_posixness_fix_bug530308.diff
--- clucene-0.9.21b/tinycore/patches/02_posixness_fix_bug530308.diff	1970-01-01 00:00:00.000000000 +0000
+++ clucene-0.9.21b_tinycore/tinycore/patches/02_posixness_fix_bug530308.diff	2010-07-02 15:27:43.843011000 +0000
@@ -0,0 +1,13 @@
+--- a/src/CLucene/config/compiler.h
++++ b/src/CLucene/config/compiler.h
+@@ -133,6 +133,10 @@
+ #define LUCENE_INT32_MAX_SHOULDBE 0x7FFFFFFFL
+ #define LUCENE_UINT8_MAX_SHOULDBE 0xff
+ 
++#if defined(__GNU__)
++ #define PATH_MAX 4096
++#endif
++
+ //maximum path length. only used for buffers that use fullpath.
+ //anything else should use a dynamic length.
+ #if defined(CL_MAX_PATH)
diff -Naur clucene-0.9.21b/tinycore/patches/series clucene-0.9.21b_tinycore/tinycore/patches/series
--- clucene-0.9.21b/tinycore/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ clucene-0.9.21b_tinycore/tinycore/patches/series	2010-07-02 15:27:43.843011000 +0000
@@ -0,0 +1,2 @@
+01_add_missing_include_bug505667.diff
+02_posixness_fix_bug530308.diff
