diff options
author | ulim <a.sporto+bee@gmail.com> | 2008-08-11 16:31:03 +0200 |
---|---|---|
committer | ulim <a.sporto+bee@gmail.com> | 2008-08-11 16:31:03 +0200 |
commit | 66be7849ef6b74c39bc8f1dc1d96bc4788eb50a0 (patch) | |
tree | 9c8a33927bb16a3d177204fec57cbb4a9ae93752 | |
parent | 92f4ec5d9d480247281c50c163c19b1ea438c1b3 (diff) |
copied ulibc/BSD ifdefs over to invitation.c.
I'll have to move these to a generic header file eventually.
-rw-r--r-- | protocols/msn/invitation.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/protocols/msn/invitation.c b/protocols/msn/invitation.c index 4e24d54c..021764d2 100644 --- a/protocols/msn/invitation.c +++ b/protocols/msn/invitation.c @@ -28,6 +28,20 @@ #include "invitation.h" #include "msn.h" +/* Some ifdefs for ulibc and apparently also BSD (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 + #ifdef debug #undef debug #endif |