Changeset 1093:3567d6d2fa25 in roaraudio


Ignore:
Timestamp:
12/28/08 21:04:24 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

disbale fork, sockets (sockpair) and kill on win32

Location:
libroar
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libroar/basic.c

    r1078 r1093  
    5353  server = roar_server; 
    5454 
     55#ifndef ROAR_TARGET_WIN32 
    5556 if ( server == NULL && (i = readlink("/etc/roarserver", user_sock, 79)) != -1 ) { 
    5657   user_sock[i] = 0; 
    5758   server = user_sock; 
    5859 } 
     60#endif 
    5961 
    6062 if ( server == NULL || *server == 0 ) { 
  • libroar/cdrom.c

    r1083 r1093  
    184184 } 
    185185 
     186#ifndef ROAR_TARGET_WIN32 
    186187 if ( cdrom->player != -1 ) 
    187188  kill(cdrom->player, SIGINT); 
     189#else 
     190 if ( cdrom->player != -1 ) { 
     191  ROAR_ERR("roar_cdrom_stop(*): Can not kill player with pid %i, not supported on win32", cdrom->player); 
     192 } 
     193#endif 
    188194 
    189195 cdrom->player = -1; 
  • libroar/socket.c

    r1090 r1093  
    600600 
    601601int roar_socket_open_fork  (int mode, char * host, int port) { 
     602#ifndef ROAR_TARGET_WIN32 
    602603 int socks[2]; 
    603604 int r; 
     
    638639 
    639640 return -1; 
     641#else 
     642 ROAR_ERR("roar_socket_open_fork(*): There is no UNIX Domain Socket support in win32, download a real OS."); 
     643 return -1; 
     644#endif 
    640645} 
    641646 
Note: See TracChangeset for help on using the changeset viewer.