ObjFW  Check-in [addbd546c5]

Overview
Comment:Fix Wii build
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: addbd546c5da962c407368c137b349d7d17549c0ef8639fd0e393ebdb6c50806
User & Date: js on 2020-05-06 20:25:32
Other Links: manifest | tags
Context
2020-05-09
13:41
Add tests for OFSCTPSocket check-in: 0765df9754 user: js tags: trunk
2020-05-06
20:25
Fix Wii build check-in: addbd546c5 user: js tags: trunk
00:32
Improve names of several properties check-in: bc67e98833 user: js tags: trunk
Changes

Modified src/OFDatagramSocket.m from [4cd95b929d] to [3479c8733b].

136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
	if (setsockopt(_socket, SOL_SOCKET, SO_BROADCAST,
	    (char *)&v, (socklen_t)sizeof(v)) != 0)
		@throw [OFSetOptionFailedException
		    exceptionWithObject: self
				  errNo: of_socket_errno()];

#ifdef OF_WII
	_canSendToBroadcastAddresses = allowed;
#endif
}

- (bool)canSendToBroadcastAddresses
{
#ifndef OF_WII
	int v;







|







136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
	if (setsockopt(_socket, SOL_SOCKET, SO_BROADCAST,
	    (char *)&v, (socklen_t)sizeof(v)) != 0)
		@throw [OFSetOptionFailedException
		    exceptionWithObject: self
				  errNo: of_socket_errno()];

#ifdef OF_WII
	_canSendToBroadcastAddresses = canSendToBroadcastAddresses;
#endif
}

- (bool)canSendToBroadcastAddresses
{
#ifndef OF_WII
	int v;