ObjFW  Check-in [e1559236a9]

Overview
Comment:Add struct sockaddr_storage for MorphOS
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e1559236a936f951dc5e215c4ed2fbf5560da37d6b84f18beed5a9979ad69d91
User & Date: js on 2017-05-16 22:35:54
Other Links: manifest | tags
Context
2017-05-16
22:58
threading.h: Remove unconditional sched.h include check-in: 510158d026 user: js tags: trunk
22:35
Add struct sockaddr_storage for MorphOS check-in: e1559236a9 user: js tags: trunk
22:28
forwarding-ppc-elf.S: Use @ instead of % check-in: 1cd3e0c08c user: js tags: trunk
Changes

Modified src/socket.h from [61415b2d72] to [d3d411a803].

44
45
46
47
48
49
50






51
52
53
54
55
56
57
# include <windows.h>
# include <ws2tcpip.h>
#endif

#ifdef OF_MORPHOS
/* Strangely, MorphOS defines socklen_t in pthread.h */
# include <pthread.h>






#endif

#ifdef OF_WII
# define BOOL OGC_BOOL
# include <network.h>
# undef BOOL








>
>
>
>
>
>







44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# include <windows.h>
# include <ws2tcpip.h>
#endif

#ifdef OF_MORPHOS
/* Strangely, MorphOS defines socklen_t in pthread.h */
# include <pthread.h>

struct sockaddr_storage {
	uint8_t ss_len;
	uint8_t ss_family;
	char ss_data[2 + sizeof(struct in_addr) + 8];
};
#endif

#ifdef OF_WII
# define BOOL OGC_BOOL
# include <network.h>
# undef BOOL