Overview
Comment: | OFDDPSocket: Fix compilation on FreeBSD 10 |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
9da54e797fec21b3e283dd680135f069 |
User & Date: | js on 2023-05-20 16:35:44 |
Other Links: | manifest | tags |
Context
2023-05-20
| ||
16:42 | OFUDPSocketTests: Remove obsolete comment check-in: 5028d169ad user: js tags: trunk | |
16:35 | OFDDPSocket: Fix compilation on FreeBSD 10 check-in: 9da54e797f user: js tags: trunk | |
2023-05-07
| ||
11:47 | Fix compilation on newer FreeBSD check-in: e3cecb9f08 user: js tags: trunk | |
Changes
Modified src/OFDDPSocket.m from [55ed0932ea] to [2eb53d96c3].
︙ | ︙ | |||
112 113 114 115 116 117 118 | # endif @throw [OFSetOptionFailedException exceptionWithObject: nil errNo: OFSocketErrNo()]; memset(&request, 0, sizeof(request)); strncpy(request.ifr_name, interfaceName.UTF8String, IFNAMSIZ - 1); | | | 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | # endif @throw [OFSetOptionFailedException exceptionWithObject: nil errNo: OFSocketErrNo()]; memset(&request, 0, sizeof(request)); strncpy(request.ifr_name, interfaceName.UTF8String, IFNAMSIZ - 1); sat = (struct sockaddr_at *)(void *)&request.ifr_addr; sat->sat_family = AF_APPLETALK; sat->sat_net = OFToBigEndian16(network.unsignedShortValue); sat->sat_node = node.unsignedCharValue; /* * The netrange is hidden in sat_zero and different OSes use different * struct names for it, so the portable way is setting sat_zero * directly. |
︙ | ︙ | |||
180 181 182 183 184 185 186 | return nil; } @throw [OFGetOptionFailedException exceptionWithObject: nil errNo: errNo]; } | | | 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | return nil; } @throw [OFGetOptionFailedException exceptionWithObject: nil errNo: errNo]; } sat = (struct sockaddr_at *)(void *)&request.ifr_addr; close(sock); # ifndef OF_LINUX /* * Linux currently doesn't fill out the phase or netrange. * |
︙ | ︙ |