libc/include/regex.h: Add include of <sys/_types.h> for off_t

Message ID 20260205210729.3721026-1-joel@rtems.org
State New
Headers
Series libc/include/regex.h: Add include of <sys/_types.h> for off_t |

Commit Message

Joel Sherrill Feb. 5, 2026, 9:07 p.m. UTC
  The winsup/ version of regex.h already had this include. Without
it, including <regex.h> by itself would not compile.
---
 newlib/libc/include/regex.h | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/newlib/libc/include/regex.h b/newlib/libc/include/regex.h
index 4da1a374e..88e4982d0 100644
--- a/newlib/libc/include/regex.h
+++ b/newlib/libc/include/regex.h
@@ -38,6 +38,7 @@ 
 #define	_REGEX_H_
 
 #include <sys/cdefs.h>
+#include <sys/_types.h>
 
 /* types */
 typedef off_t regoff_t;