diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2015-02-11 15:11:43 +0100 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2015-02-11 15:11:43 +0100 |
commit | 9cfb9225ed39130e0e0667ce0f94d18e6ffb698a (patch) | |
tree | cd6f0497c4bc4ba92cc9ca83b9c729c5f8afe694 /kbfunc.c | |
parent | 976d77c76d72e19aa50929b56bb94ae914eee968 (diff) | |
download | cwm-9cfb9225ed39130e0e0667ce0f94d18e6ffb698a.tar.gz cwm-9cfb9225ed39130e0e0667ce0f94d18e6ffb698a.tar.xz cwm-9cfb9225ed39130e0e0667ce0f94d18e6ffb698a.zip |
Use _POSIX_HOST_NAME_MAX
to be able to compile under Mac OS X.
Diffstat (limited to 'kbfunc.c')
-rw-r--r-- | kbfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kbfunc.c b/kbfunc.c index 8ad5b99..6cf454c 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -324,7 +324,7 @@ kbfunc_ssh(struct client_ctx *cc, union arg *arg) struct menu_q menuq; FILE *fp; char *buf, *lbuf, *p; - char hostbuf[HOST_NAME_MAX+1]; + char hostbuf[_POSIX_HOST_NAME_MAX+1]; char path[PATH_MAX]; int l; size_t len; |