Changeset 5745:981cb1338653 in roaraudio for libroar/socket.c


Ignore:
Timestamp:
11/09/12 23:32:43 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

avoid warnings on systems with non-POSIX socket interface (I'm looking at you win32!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/socket.c

    r5714 r5745  
    557557 char * del; 
    558558#endif 
     559#ifdef ROAR_HAVE_GETADDRINFO 
    559560 int af_guessed = 0; 
    560 #ifdef ROAR_HAVE_GETADDRINFO 
    561561 struct addrinfo hints, *res = NULL; 
    562562 char port_as_string[32]; 
     
    580580 
    581581 if ( type == ROAR_SOCKET_TYPE_UNKNOWN ) { 
     582#ifdef ROAR_HAVE_GETADDRINFO 
    582583  af_guessed = 1; 
     584#endif 
    583585  type = ROAR_SOCKET_TYPE_INET; 
    584586  if ( *host == '/' ) { 
Note: See TracChangeset for help on using the changeset viewer.