RTEMS | regex.h is missing a dependency (#5478)

Joel Sherrill (@joel) gitlab at rtems.org
Thu Feb 5 20:22:59 UTC 2026




Joel Sherrill commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5478#note_141842


POSIX does not require _regex.h_ to define _off_t_. It is referenced in the typedef for _regoff_t_.

_regex.h_ is from newlib. There are two instances of it in their source tree:

- ./newlib/libc/include/regex.h
- ./winsup/cygwin/include/regex.h

The _winsup_ version includes <sys/_types.h> and the newlib version does not. The solution is to copy that line from the _winsup_ version to the newlib version. 

After this is committed, the hash in the RSB will need updating..

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5478#note_141842
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260205/ddc4a7de/attachment-0001.htm>


More information about the bugs mailing list