aboutsummaryrefslogtreecommitdiffstats
path: root/dcc.c
diff options
context:
space:
mode:
authorulim <a.sporto+bee@gmail.com>2008-05-04 15:32:15 +0200
committerulim <a.sporto+bee@gmail.com>2008-05-04 15:32:15 +0200
commit4358b10c11410a27af9458c92067549cafbc4c0b (patch)
treed60712a886fe6e54b76204dd1362b6fe71e9c805 /dcc.c
parent0cab3888888c7c6b58af9560a0ae2c74a795727f (diff)
ulibc support, fixes "Invalid SOCKS5 Connect message" problem
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:
*