daemon: default to 256 for HOST_NAME_MAX if it is not defined
[git/git.git] / daemon.c
index 5335d21..fc3951c 100644 (file)
--- a/daemon.c
+++ b/daemon.c
 #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;