Changeset 3897:7150eb408831 in roaraudio for libroar/socket.c


Ignore:
Timestamp:
05/25/10 17:42:59 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

get things to compile on µCs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/socket.c

    r3835 r3897  
    789789 } 
    790790 
     791// TODO: fix this in a good way 
     792#ifndef ROAR_TARGET_MICROCONTROLLER 
    791793 if ( passwd != NULL ) 
    792794  user = passwd->pw_name; 
     795#endif 
    793796 
    794797 if ( user == NULL ) 
     
    897900 
    898901int roar_socket_open_socks4 (int mode, int fh, char * host, int port, char * user, char * pw, char * opts) { 
     902#ifndef ROAR_TARGET_MICROCONTROLLER 
    899903 struct hostent     * he; 
    900904 
     
    905909 
    906910 return roar_socket_open_socks4x(mode, fh, he->h_addr, port, NULL, 0, user); 
     911#else 
     912 return -1; 
     913#endif 
    907914} 
    908915 
     
    10621069 
    10631070 
     1071// TODO: get this more portable! 
     1072#ifdef AF_UNIX 
    10641073 if ( socketpair(AF_UNIX, SOCK_STREAM, 0, socks) == -1 ) { 
    10651074  return -1; 
    10661075 } 
     1076#else 
     1077 return -1; 
     1078#endif 
    10671079 
    10681080 r = fork(); 
Note: See TracChangeset for help on using the changeset viewer.