text: include errno.h in text.h