summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-07 05:10:21 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-07 05:10:21 +0000
commit1ecf6c370896c19a090cec988c6708fc77165378 (patch)
treed92dcc14adbbb8742d77d00c92ba40aaf7438190
parentad2361101d6651b18fedbda5b986bbb9c457cda7 (diff)
include stdint.h and check __intptr_t_defined to see if we need to setup uintptr_t
-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