diff --git a/newlib/libc/include/regex.h b/newlib/libc/include/regex.h
index 4da1a374e..0b1c633d0 100644
--- a/newlib/libc/include/regex.h
+++ b/newlib/libc/include/regex.h
@@ -38,9 +38,10 @@
 #define	_REGEX_H_
 
 #include <sys/cdefs.h>
+#include <sys/_types.h>
 
 /* types */
-typedef off_t regoff_t;
+typedef _off_t regoff_t;
 
 typedef struct {
 	int re_magic;
