Skip to content

Commit 0bdaacf

Browse files
rsbeckercagitster
authored andcommitted
compat/regex/regcomp.c: define intptr_t and uintptr_t on NonStop
The system definition header files on HPE NonStop do not define intptr_t and uintptr_t as do other platforms. These typedefs are added specifically wrapped in a __TANDEM ifdef. Signed-off-by: Randall S. Becker <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1305ef3 commit 0bdaacf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

compat/regex/regcomp.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
License along with the GNU C Library; if not, see
1818
<http://www.gnu.org/licenses/>. */
1919

20+
#if defined __TANDEM
21+
/* This is currently duplicated from git-compat-utils.h */
22+
# ifdef NO_INTPTR_T
23+
typedef long intptr_t;
24+
typedef unsigned long uintptr_t;
25+
# endif
26+
#endif
27+
2028
static reg_errcode_t re_compile_internal (regex_t *preg, const char * pattern,
2129
size_t length, reg_syntax_t syntax);
2230
static void re_compile_fastmap_iter (regex_t *bufp,

0 commit comments

Comments
 (0)