Changeset 1090:08407aa9a029 in roaraudio for libroar/socket.c


Ignore:
Timestamp:
12/28/08 19:55:37 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

disable some uses of UNIX Dominain sockets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/socket.c

    r1087 r1090  
    433433 union { 
    434434  struct sockaddr_in  in; 
     435#ifdef ROAR_HAVE_UNIX 
    435436  struct sockaddr_un  un; 
     437#endif 
    436438#ifdef ROAR_HAVE_IPV6 
    437439  struct sockaddr_in6 in6; 
     
    539541  // hey! we have a socket... 
    540542 } else if ( type == ROAR_SOCKET_TYPE_UNIX ) { 
     543#ifdef ROAR_HAVE_UNIX 
    541544  socket_addr.un.sun_family = AF_UNIX; 
    542545  strncpy(socket_addr.un.sun_path, host, sizeof(socket_addr.un.sun_path) - 1); 
     
    549552   return -1; 
    550553  } 
     554#else 
     555  ROAR_ERR("roar_socket_open(*): There is no UNIX Domain Socket support in win32, download a real OS."); 
     556  return -1; 
     557#endif 
    551558 } else if ( type == ROAR_SOCKET_TYPE_IPX ) { 
    552559#ifdef ROAR_HAVE_IPX 
Note: See TracChangeset for help on using the changeset viewer.