git-compat-util.h: add FLOSS headers for HPE NonStop
The HPE NonStop (a.k.a. __TANDEM) platform cannot build git without using the FLOSS package supplied by HPE. The convenient location for including the relevant headers is in this file. The NSIG define is also not defined on __TANDEM, so we define it here as 100 if it is not defined only for __TANDEM builds. Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Randall S. Becker committed
Jan 3, 2019 at 16:03 UTC
1305ef3784c2ae9e0377ee1a8ee8ba546c7e3032
1 file changed
+13
git-compat-util.h
+13
@@ -397,6 +397,19 @@ static inline char *git_find_last_dir_sep(const char *path)
397
#define query_user_email() NULL
398
#endif
399
400
+#ifdef __TANDEM
401
+#include <floss.h(floss_execl,floss_execlp,floss_execv,floss_execvp)>
402
+#include <floss.h(floss_getpwuid)>
403
+#ifndef NSIG
404
+/*
405
+ * NonStop NSE and NSX do not provide NSIG. SIGGUARDIAN(99) is the highest
406
+ * known, by detective work using kill -l as a list is all signals
407
+ * instead of signal.h where it should be.
408
+ */
409
+# define NSIG 100
410
+#endif
411
+#endif
412
+
413
#if defined(__HP_cc) && (__HP_cc >= 61000)
414
#define NORETURN __attribute__((noreturn))
415
#define NORETURN_PTR