Skip to content

Commit

Permalink
Use _POSIX_HOST_NAME_MAX
Browse files Browse the repository at this point in the history
to be able to compile under Mac OS X.
  • Loading branch information
afh committed Feb 11, 2015
1 parent 976d77c commit 9cfb922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kbfunc.c
Expand Up @@ -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;
Expand Down

0 comments on commit 9cfb922

Please sign in to comment.