summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-09-28 12:00:35 +0200
committerJunio C Hamano <junkio@cox.net>2006-09-28 09:14:09 -0700
commit695dffe2efa53b9628e7811dbe33447a8014fd77 (patch)
tree1c617afcc3d5b36e83b20c6ecada7e4c3d0240e6
parentc08e52486a7b5e38741c8264979a11f0103ec8c4 (diff)
downloadgit-695dffe2efa53b9628e7811dbe33447a8014fd77.tar.gz
daemon: default to 256 for HOST_NAME_MAX if it is not defined
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--daemon.c4
1 files changed, 4 insertions, 0 deletions
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;