Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
xgethostname: handle long hostnames
[gitweb.git]
/
git-compat-util.h
diff --git
a/git-compat-util.h
b/git-compat-util.h
index 1f1e82407e1e93dbe7e47b94ca4aef01d4910d08..b8c4c8d638dfc9cdb261db3e64ab3eb33f3b5558 100644
(file)
--- a/
git-compat-util.h
+++ b/
git-compat-util.h
@@
-882,6
+882,8
@@
extern int xsnprintf(char *dst, size_t max, const char *fmt, ...);
#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];