Code

t: add test harness for external credential helpers
[git.git] / git-compat-util.h
index 5ef8ff76f6fd262c3109d25d706ebd3db35c73fa..5c238bd6dd45c859fa2430b20741aaf8b93d4fca 100644 (file)
 #include <arpa/inet.h>
 #include <netdb.h>
 #include <pwd.h>
+#include <sys/un.h>
 #ifndef NO_INTTYPES_H
 #include <inttypes.h>
 #else
@@ -219,7 +220,7 @@ extern char *gitbasename(char *);
 #define find_last_dir_sep(path) strrchr(path, '/')
 #endif
 
-#if __HP_cc >= 61000
+#if defined(__HP_cc) && (__HP_cc >= 61000)
 #define NORETURN __attribute__((noreturn))
 #define NORETURN_PTR
 #elif defined(__GNUC__) && !defined(NO_NORETURN)