diff options
Diffstat (limited to 'bitlbee.c')
| -rw-r--r-- | bitlbee.c | 8 | 
1 files changed, 6 insertions, 2 deletions
| @@ -47,7 +47,11 @@ int bitlbee_daemon_init()  	memset( &hints, 0, sizeof( hints ) );  	hints.ai_family = PF_UNSPEC;  	hints.ai_socktype = SOCK_STREAM; -	hints.ai_flags = AI_ADDRCONFIG | AI_PASSIVE; +	hints.ai_flags = AI_PASSIVE +#ifdef AI_ADDRCONFIG +	               | AI_ADDRCONFIG +#endif +	;  	i = getaddrinfo( global.conf->iface, global.conf->port, &hints, &addrinfo_bind );  	if( i ) @@ -278,7 +282,7 @@ static gboolean bitlbee_io_new_client( gpointer data, gint fd, b_input_condition  			child->ipc_inpa = b_input_add( child->ipc_fd, GAIM_INPUT_READ, ipc_master_read, child );  			child_list = g_slist_append( child_list, child ); -			log_message( LOGLVL_INFO, "Creating new subprocess with pid %d.", client_pid ); +			log_message( LOGLVL_INFO, "Creating new subprocess with pid %d.", (int) client_pid );  			/* Close some things we don't need in the parent process. */  			close( new_socket ); | 
