From 9cfb9225ed39130e0e0667ce0f94d18e6ffb698a Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Wed, 11 Feb 2015 15:11:43 +0100 Subject: [PATCH] Use _POSIX_HOST_NAME_MAX to be able to compile under Mac OS X. --- kbfunc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;