# NI_MAXSERV trivial patch

1 messages from 2007-10-18 to 2007-10-18. Participants: Patrick Welche.
Thread: https://gitlist.dev/t/10365

## Patrick Welche, 2007-10-18 17:17

Subject: NI_MAXSERV trivial patch
Message-ID: <20071018171739.GC580@quartz.itdept.newn.cam.ac.uk>
URL: https://gitlist.dev/e/20071018171739.GC580%40quartz.itdept.newn.cam.ac.uk

```
I found I needed

--- daemon.c.orig       2007-09-02 06:57:44.000000000 +0100
+++ daemon.c    2007-10-18 16:04:00.000000000 +0100
@@ -9,6 +9,10 @@
 #define HOST_NAME_MAX 256
 #endif
 
+#ifndef NI_MAXSERV
+#define NI_MAXSERV 32
+#endif
+
 static int log_syslog;
 static int verbose;
 static int reuseaddr;




to compile git, as for me NI_MAXSERV is defined in netdb.h, and it
doesn't seem worthwhile to include the whole header.

Cheers,

Patrick

```
