* macros that code uses.  This lets the same code operate on two different
  * representations for state sets.
  */
+#if defined(__MWERKS__) && !defined(__MACH__)
+typedef long off_t ;
+#else
 #include <sys/types.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <limits.h>
 #include <ctype.h>
-#include <regex.h>
+#include "regex.h"
 
 #include "utils.h"
 #include "regex2.h"