Use _POSIX_HOST_NAME_MAX

to be able to compile under Mac OS X.
This commit is contained in:
Alexis Hildebrandt 2015-02-11 15:11:43 +01:00
parent 976d77c76d
commit 9cfb9225ed

View File

@ -324,7 +324,7 @@ kbfunc_ssh(struct client_ctx *cc, union arg *arg)
struct menu_q menuq; struct menu_q menuq;
FILE *fp; FILE *fp;
char *buf, *lbuf, *p; char *buf, *lbuf, *p;
char hostbuf[HOST_NAME_MAX+1]; char hostbuf[_POSIX_HOST_NAME_MAX+1];
char path[PATH_MAX]; char path[PATH_MAX];
int l; int l;
size_t len; size_t len;