From 4358b10c11410a27af9458c92067549cafbc4c0b Mon Sep 17 00:00:00 2001 From: ulim Date: Sun, 4 May 2008 15:32:15 +0200 Subject: ulibc support, fixes "Invalid SOCKS5 Connect message" problem --- dcc.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'dcc.c') diff --git a/dcc.c b/dcc.c index d93eef87..cd70c480 100644 --- a/dcc.c +++ b/dcc.c @@ -29,6 +29,20 @@ #include #include +/* Some ifdefs for ulibc (Thanks to Whoopie) */ +#ifndef HOST_NAME_MAX +#include +#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: * -- cgit v1.2.3