summaryrefslogtreecommitdiffstats
path: root/libc/include/regex.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/include/regex.h')
-rw-r--r--libc/include/regex.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/include/regex.h b/libc/include/regex.h
index aec38e3..b06a515 100644
--- a/libc/include/regex.h
+++ b/libc/include/regex.h
@@ -42,8 +42,9 @@
#include <sys/cdefs.h>
#include <sys/types.h>
-/* types */
-typedef off_t regoff_t;
+/* POSIX says regoff_t is at least as large as the larger of ptrdiff_t and
+ * ssize_t. BSD uses off_t, but that interacts badly with _FILE_OFFSET_BITS. */
+typedef ssize_t regoff_t;
typedef struct {
int re_magic;