Changeset 3897:7150eb408831 in roaraudio for libroar/socket.c
- Timestamp:
- 05/25/10 17:42:59 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/socket.c
r3835 r3897 789 789 } 790 790 791 // TODO: fix this in a good way 792 #ifndef ROAR_TARGET_MICROCONTROLLER 791 793 if ( passwd != NULL ) 792 794 user = passwd->pw_name; 795 #endif 793 796 794 797 if ( user == NULL ) … … 897 900 898 901 int roar_socket_open_socks4 (int mode, int fh, char * host, int port, char * user, char * pw, char * opts) { 902 #ifndef ROAR_TARGET_MICROCONTROLLER 899 903 struct hostent * he; 900 904 … … 905 909 906 910 return roar_socket_open_socks4x(mode, fh, he->h_addr, port, NULL, 0, user); 911 #else 912 return -1; 913 #endif 907 914 } 908 915 … … 1062 1069 1063 1070 1071 // TODO: get this more portable! 1072 #ifdef AF_UNIX 1064 1073 if ( socketpair(AF_UNIX, SOCK_STREAM, 0, socks) == -1 ) { 1065 1074 return -1; 1066 1075 } 1076 #else 1077 return -1; 1078 #endif 1067 1079 1068 1080 r = fork();
Note: See TracChangeset
for help on using the changeset viewer.