{"thread":{"id":"50114","subject":"[PATCH v2 3/4] git-compat-util.h: add FLOSS headers for HPE NonStop","startedAt":"2018-12-27T15:58:51Z","lastAt":"2018-12-27T15:58:51Z","messageCount":1,"participants":["randall.s.becker@rogers.com"],"isPatch":true,"patchVersion":2,"patchTotal":4},"messages":[{"id":"365849","messageId":"20181227155824.12232-1-randall.s.becker@rogers.com","threadId":"50114","inReplyTo":null,"subject":"[PATCH v2 3/4] git-compat-util.h: add FLOSS headers for HPE NonStop","fromName":"","fromEmail":"randall.s.becker@rogers.com","sentAt":"2018-12-27T15:58:24Z","receivedAt":"2018-12-27T15:58:51Z","isPatch":true,"sender":{"key":"randall.s.becker@rogers.com","avatar":null},"body":"From: \"Randall S. Becker\" <rsbecker@nexbridge.com>\n\nThe HPE NonStop (a.k.a. __TANDEM) platform cannot build git without\nusing the FLOSS package supplied by HPE. The convenient location\nfor including the relevant headers is in this file.\n\nThe NSIG define is also not defined on __TANDEM, so we define it\nhere as 100 if it is not defined only for __TANDEM builds.\n\nSigned-off-by: Randall S. Becker <rsbecker@nexbridge.com>\n---\n git-compat-util.h | 15 +++++++++++++++\n 1 file changed, 15 insertions(+)\n\ndiff --git a/git-compat-util.h b/git-compat-util.h\nindex 09b0102cae..3f615f7ed8 100644\n--- a/git-compat-util.h\n+++ b/git-compat-util.h\n@@ -397,6 +397,21 @@ static inline char *git_find_last_dir_sep(const char *path)\n #define query_user_email() NULL\n #endif\n \n+#ifdef __TANDEM\n+#include <floss.h(floss_execl,floss_execlp,floss_execv,floss_execvp)>\n+#include <floss.h(floss_getpwuid)>\n+#ifndef NSIG\n+/* NonStop NSE and NSX do not provide NSIG. SIGGUARDIAN(99) is the highest\n+   known, by detective work using kill -l as a list is all signals\n+   instead of signal.h where it should be. */\n+# define NSIG 100\n+#endif\n+#endif\n+\n #if defined(__HP_cc) && (__HP_cc >= 61000)\n #define NORETURN __attribute__((noreturn))\n #define NORETURN_PTR\n-- \n2.17.0.10.gb132f7033\n\n"}]}