Skip to content

Commit 1305ef3

Browse files
rsbeckercagitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 71fb089 commit 1305ef3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

git-compat-util.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,19 @@ static inline char *git_find_last_dir_sep(const char *path)
397397
#define query_user_email() NULL
398398
#endif
399399

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+
400413
#if defined(__HP_cc) && (__HP_cc >= 61000)
401414
#define NORETURN __attribute__((noreturn))
402415
#define NORETURN_PTR

0 commit comments

Comments
 (0)