Changeset 1380:2df1d3fd0785 in roaraudio
- Timestamp:
- 03/25/09 13:43:19 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/simple.c
r1359 r1380 166 166 return -1; 167 167 } 168 #ifdef ROAR_HAVE_IPV4 168 169 } else { 169 170 strncpy(file, inet_ntoa(socket_addr.sin_addr), 79); 171 #endif 170 172 } 171 173 … … 177 179 178 180 if ( type == ROAR_SOCKET_TYPE_INET ) { 181 #ifdef ROAR_HAVE_IPV4 179 182 len = sizeof(struct sockaddr_in); 180 183 setsockopt(listen, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(int)); … … 185 188 port = ROAR_NET2HOST16(socket_addr.sin_port); 186 189 ROAR_DBG("roar_simple_new_stream_obj(*): port=%i", port); 190 #else 191 return -1; 192 #endif 187 193 } else if ( type == ROAR_SOCKET_TYPE_DECNET ) { 188 194 len = sizeof(struct sockaddr_in);
Note: See TracChangeset
for help on using the changeset viewer.