diff options
author | ulim <a.sporto+bee@gmail.com> | 2008-05-04 15:32:15 +0200 |
---|---|---|
committer | ulim <a.sporto+bee@gmail.com> | 2008-05-04 15:32:15 +0200 |
commit | 4358b10c11410a27af9458c92067549cafbc4c0b (patch) | |
tree | d60712a886fe6e54b76204dd1362b6fe71e9c805 /dcc.c | |
parent | 0cab3888888c7c6b58af9560a0ae2c74a795727f (diff) |
ulibc support, fixes "Invalid SOCKS5 Connect message" problem
Diffstat (limited to 'dcc.c')
-rw-r--r-- | dcc.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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: * |