From 695dffe2efa53b9628e7811dbe33447a8014fd77 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 28 Sep 2006 12:00:35 +0200 Subject: [PATCH] daemon: default to 256 for HOST_NAME_MAX if it is not defined Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- daemon.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon.c b/daemon.c index 5335d212c3..fc3951cf75 100644 --- a/daemon.c +++ b/daemon.c @@ -15,6 +15,10 @@ #include "exec_cmd.h" #include "interpolate.h" +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX 256 +#endif + static int log_syslog; static int verbose; static int reuseaddr; -- GitLab