diff --git a/git-compat-util.h b/git-compat-util.h
index 5ef8ff76f6fd262c3109d25d706ebd3db35c73fa..5c238bd6dd45c859fa2430b20741aaf8b93d4fca 100644 (file)
--- a/git-compat-util.h
+++ b/git-compat-util.h
#include <arpa/inet.h>
#include <netdb.h>
#include <pwd.h>
+#include <sys/un.h>
#ifndef NO_INTTYPES_H
#include <inttypes.h>
#else
#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)