grep: change non-ASCII -i test to stop using --debug
[gitweb.git] / git-compat-util.h
index 8a4a3f85e7ba0a658420c477e1af82e804d7fd36..bd04564a69a052ce856f2ba120855541c66fc650 100644 (file)
@@ -884,6 +884,12 @@ static inline size_t xsize_t(off_t len)
 __attribute__((format (printf, 3, 4)))
 extern int xsnprintf(char *dst, size_t max, const char *fmt, ...);
 
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX 256
+#endif
+
+extern int xgethostname(char *buf, size_t len);
+
 /* in ctype.c, for kwset users */
 extern const unsigned char tolower_trans_tbl[256];