git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[Patch v5 4/4] compat/regex/regcomp.c: define intptr_t and uintptr_t on NonStop

From
Rrandall.s.becker@rogers.com <randall.s.becker@rogers.com>
Date
Jan 3, 2019, 21:03 UTC
Message-ID
<20190103210351.13920-5-randall.s.becker@rogers.com>
In-Reply-To
<20190103210351.13920-1-randall.s.becker@rogers.com>
From: "Randall S. Becker" <randall.becker@nexbridge.ca>

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 <rsbecker@nexbridge.com>
---
 compat/regex/regcomp.c | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/compat/regex/regcomp.c b/compat/regex/regcomp.c
index 51cd60baa..c0d838834 100644
--- a/compat/regex/regcomp.c
+++ b/compat/regex/regcomp.c
@@ -17,6 +17,14 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#if defined __TANDEM
+ /* This is currently duplicated from git-compat-utils.h */
+# ifdef NO_INTPTR_T
+ typedef long intptr_t;
+ typedef unsigned long uintptr_t;
+# endif
+#endif
+
 static reg_errcode_t re_compile_internal (regex_t *preg, const char * pattern,
 					  size_t length, reg_syntax_t syntax);
 static void re_compile_fastmap_iter (regex_t *bufp,
-- 
2.12.3
Previous: Junio C Hamano
Message 11 of 11 in “HPE NonStop Port Commits”
  1. 0/4 HPE NonStop Port Commitsrandall.s.becker@rogers.com, Jan 3, 2019
  2. 1/4 transport-helper: use xread instead of readrandall.s.becker@rogers.com, Jan 3, 2019
  3. 2/4 config.mak.uname: support for modern HPE NonStop config.randall.s.becker@rogers.com, Jan 3, 2019
  4. Eric SunshineJan 3, 2019
  5. Randall S. BeckerJan 3, 2019
  6. Junio C HamanoJan 3, 2019
  7. 3/4 git-compat-util.h: add FLOSS headers for HPE NonStoprandall.s.becker@rogers.com, Jan 3, 2019
  8. Eric SunshineJan 3, 2019
  9. Randall S. BeckerJan 3, 2019
  10. Junio C HamanoJan 3, 2019
  11. 4/4 compat/regex/regcomp.c: define intptr_t and uintptr_t on NonStoprandall.s.becker@rogers.com, Jan 3, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.