diff options
author | ulim <a.sporto+bee@gmail.com> | 2008-08-12 13:04:37 +0200 |
---|---|---|
committer | ulim <a.sporto+bee@gmail.com> | 2008-08-12 13:04:37 +0200 |
commit | aac40178a6669e20855b7f5d3cc6a82cba10042e (patch) | |
tree | eaf497266afee2ea6dd2d8fe59be61a4ae3466b8 /lib | |
parent | 5d550c51a5e9c9f48f26283f0ea3fee2d4945feb (diff) |
More hints for getaddrinfo().
Hopefully solves a problem on FreeBSD.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftutil.c | 4 | ||||
-rw-r--r-- | lib/ftutil.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/ftutil.c b/lib/ftutil.c index cfe06006..169a6480 100644 --- a/lib/ftutil.c +++ b/lib/ftutil.c @@ -37,10 +37,6 @@ #endif #endif -#ifndef AI_NUMERICSERV -#define AI_NUMERICSERV 0x0400 /* Don't use name resolution. */ -#endif - #define ASSERTSOCKOP(op, msg) \ if( (op) == -1 ) {\ sprintf( errmsg , msg ": %s", strerror( errno ) ); \ diff --git a/lib/ftutil.h b/lib/ftutil.h index 5f2780ef..636fcbd0 100644 --- a/lib/ftutil.h +++ b/lib/ftutil.h @@ -21,4 +21,8 @@ * * \***************************************************************************/ +#ifndef AI_NUMERICSERV +#define AI_NUMERICSERV 0x0400 /* Don't use name resolution. */ +#endif + int ft_listen( struct sockaddr_storage *saddr_ptr, char *host, char *port, int for_bitlbee_client, char **errptr ); |