summaryrefslogtreecommitdiff
path: root/libc/misc/regex/regex_old.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/regex/regex_old.c')
-rw-r--r--libc/misc/regex/regex_old.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/misc/regex/regex_old.c b/libc/misc/regex/regex_old.c
index 0ff756ff5..29640734d 100644
--- a/libc/misc/regex/regex_old.c
+++ b/libc/misc/regex/regex_old.c
@@ -31,6 +31,7 @@
# define RE_TRANSLATE_TYPE char *
#endif
#include <stdlib.h>
+#include <stdint.h>
#include <string.h>
#include <stdio.h>
@@ -331,7 +332,7 @@ init_syntax_once ()
# endif /* emacs */
/* Integer type for pointers. */
-# if !defined _LIBC
+# if !defined _LIBC && !defined __intptr_t_defined
typedef unsigned long int uintptr_t;
# endif