about summary refs log tree commit diff
path: root/include/regex.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-07-22 14:39:59 -0400
committerRich Felker <dalias@aerifal.cx>2013-07-22 14:39:59 -0400
commit8327ae0cb23b799bc55a45e0d4bd95f5a2b1cdf1 (patch)
tree1f79d37ba2a5fd06ccb21ebf6e392cbf914bb427 /include/regex.h
parent1da53dad278f98b7712ac002162afaa8815ba580 (diff)
downloadmusl-8327ae0cb23b799bc55a45e0d4bd95f5a2b1cdf1.tar.gz
musl-8327ae0cb23b799bc55a45e0d4bd95f5a2b1cdf1.tar.xz
musl-8327ae0cb23b799bc55a45e0d4bd95f5a2b1cdf1.zip
make regoff_t and regex_t match C++ ABI
for regoff_t, it's impossible to match on 64-bit archs because glibc
defined the type in a non-conforming way. however this change makes
the type match on 32-bit archs.
Diffstat (limited to 'include/regex.h')
-rw-r--r--include/regex.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/regex.h b/include/regex.h
index ea9b894b..dce21771 100644
--- a/include/regex.h
+++ b/include/regex.h
@@ -7,13 +7,12 @@ extern "C" {
 
 #include <features.h>
 
+#define __NEED_regoff_t
 #define __NEED_size_t
 
 #include <bits/alltypes.h>
 
-typedef long regoff_t;
-
-typedef struct {
+typedef struct re_pattern_buffer {
 	size_t re_nsub;
 	void *__opaque, *__padding[4];
 	size_t __nsub2;