 +#endif /*  _SYS_MMAN_H_ */
 diff --git a/fastBPE/mman_new2.patch b/fastBPE/mman_new2.patch
 new file mode 100644
-index 0000000..4a01e04
+index 0000000..5388a7a
 --- /dev/null
 +++ b/fastBPE/mman_new2.patch
-@@ -0,0 +1,169 @@
+@@ -0,0 +1,170 @@
 +diff --git a/fastBPE/fastBPE.hpp b/fastBPE/fastBPE.hpp
-+index 099ae80..5dead7f 100644
++index 099ae80..09962c2 100644
 +--- a/fastBPE/fastBPE.hpp
 ++++ b/fastBPE/fastBPE.hpp
-+@@ -12,7 +12,7 @@
++@@ -12,10 +12,10 @@
 + #include <stdio.h>
 + #include <string>
 + #include <cstring>

++#include "mman.c"
+ #include <sys/stat.h>
+ #include <thread>
+ #include <unistd.h> // ftruncate
+@@ -689,4 +689,4 @@ void applybpe_stream(const char *codesPath, const char *vocabPath) {
+   }
+ }

+#include "mman.c"
 #include <sys/stat.h>
 #include <thread>
-#include <unistd.h> // ftruncate
+#include "unistd.h"
 #include <unordered_map>
 #include <unordered_set>
 #include <vector>
@@ -689,4 +689,4 @@ void applybpe_stream(const char *codesPath, const char *vocabPath) {
   }
 }
