Changeset 1770:c529c28e2e4b in roaraudio


Ignore:
Timestamp:
05/19/09 15:40:51 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

passive mode only supported on systems supporting UNIX Sockets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarcatplay.c

    r1635 r1770  
    8484  mode = MODE_PASSIVE; 
    8585 
     86#ifndef ROAR_HAVE_UNIX 
     87 if ( mode == MODE_PASSIVE ) { 
     88  fprintf(stderr, "Error: passive mode is not supported on this system.\n", k); 
     89  return 1; 
     90 } 
     91#endif 
     92 
    8693 if ( file == NULL ) 
    8794  file = "/dev/stdin"; 
    8895 
     96#ifndef ROAR_HAVE_UNIX 
    8997 if ( mode == MODE_PASSIVE ) { 
    9098  if ( roar_simple_connect(con, server, "roarcatplay") == -1 ) { 
     
    109117 
    110118 } else { // MODE_SIMPLE 
     119#endif 
    111120  if ( roar_simple_play_file(file, server, "roarcatplay") == -1 ) { 
    112121   ROAR_ERR("Can not start playback"); 
    113122   return 1; 
    114123  } 
     124#ifndef ROAR_HAVE_UNIX 
    115125 } 
     126#endif 
    116127 
    117128 return 0; 
Note: See TracChangeset for help on using the changeset viewer.