Skip to content

Commit ac69b2e

Browse files
committed
socket: wii only supports IPPROTO_IP
1 parent 0174c98 commit ac69b2e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libogc/ogc_sockets/soc_socket.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ int socket(int domain, int type, int protocol)
1919
handle->device = dev;
2020
handle->fileStruct = ((void *)handle) + sizeof(__handle);
2121

22-
22+
#ifdef __wii__
23+
// wii network stack only supports IPPROTO_IP
24+
protocol = 0;
25+
#endif
2326
ret = net_socket( domain, type, protocol);
2427

2528
if (ret < 0) {

0 commit comments

Comments
 (0)