aboutsummaryrefslogtreecommitdiffstats
path: root/dcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'dcc.c')
-rw-r--r--dcc.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/dcc.c b/dcc.c
index d93eef87..cd70c480 100644
--- a/dcc.c
+++ b/dcc.c
@@ -29,6 +29,20 @@
#include <netinet/tcp.h>
#include <regex.h>
+/* Some ifdefs for ulibc (Thanks to Whoopie) */
+#ifndef HOST_NAME_MAX
+#include <sys/param.h>
+#ifdef MAXHOSTNAMELEN
+#define HOST_NAME_MAX MAXHOSTNAMELEN
+#else
+#define HOST_NAME_MAX 255
+#endif
+#endif
+
+#ifndef AI_NUMERICSERV
+#define AI_NUMERICSERV 0x0400 /* Don't use name resolution. */
+#endif
+
/*
* Since that might be confusing a note on naming:
*