ObjFW  Check-in [9934ed3ac2]

Overview
Comment:Fix compilation for systems without sockaddr_at
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9934ed3ac2ec8b00efa3e57b82b46fbb433a954ffe9db30ad16a368f2a753077
User & Date: js on 2022-10-22 22:37:03
Other Links: manifest | tags
Context
2022-10-23
16:21
Rename a few exceptions for consistency check-in: 2872ce314d user: js tags: trunk
2022-10-22
22:37
Fix compilation for systems without sockaddr_at check-in: 9934ed3ac2 user: js tags: trunk
22:03
OFDDPSocket: Fix minor documentation mistake check-in: 05c279b1d3 user: js tags: trunk
Changes

Modified src/OFSocket.h from [990896e9f7] to [77a6b954f7].

151
152
153
154
155
156
157
158


159
160
161
162
163
164
165
166
167
# define sipx_node sa_nodenum
# define sipx_port sa_socket
#endif

#ifndef OF_HAVE_APPLETALK
struct sockaddr_at {
	sa_family_t sat_family;
	unsigned short sat_net;


	unsigned char sat_node;
	unsigned char sat_port;
};
#endif
#ifdef OF_WINDOWS
# define sat_port sat_socket
#else
# define sat_net sat_addr.s_net
# define sat_node sat_addr.s_node







|
>
>
|
|







151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# define sipx_node sa_nodenum
# define sipx_port sa_socket
#endif

#ifndef OF_HAVE_APPLETALK
struct sockaddr_at {
	sa_family_t sat_family;
	uint8_t sat_port;
	struct at_addr {
		uint16_t s_net;
		uint8_t s_node;
	} sat_addr;
};
#endif
#ifdef OF_WINDOWS
# define sat_port sat_socket
#else
# define sat_net sat_addr.s_net
# define sat_node sat_addr.s_node