ObjFW  Check-in [a407b8b2b7]

Overview
Comment:socket.h: Add typedefs missing on MorphOS
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a407b8b2b778b64c86a379e699ad40992e527af5f09af7eb561743cc703dce3b
User & Date: js on 2019-05-05 22:29:00
Other Links: manifest | tags
Context
2019-05-05
23:02
OFTCPSocket: Work around missing EPROTO check-in: 366ce5073a user: js tags: trunk
22:29
socket.h: Add typedefs missing on MorphOS check-in: a407b8b2b7 user: js tags: trunk
22:22
runtime/linklib: Fix compilation on MorphOS check-in: 77945f04a6 user: js tags: trunk
Changes

Modified src/socket.h from [2b0e7e9e52] to [dca04b58ae].

40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
40
41
42
43
44
45
46







47
48
49
50
51
52
53







-
-
-
-
-
-
-







#ifdef OF_WINDOWS
# include <windows.h>
# include <ws2tcpip.h>
#endif

/*! @file */

#ifdef OF_MORPHOS
typedef long socklen_t;
#endif
#ifdef OF_MORPHOS_IXEMUL
typedef int socklen_t;
#endif

#ifdef OF_WII
# include <network.h>
#endif

#ifdef OF_PSP
# include <stdint.h>
#endif
68
69
70
71
72
73
74










75
76
77
78
79
80
81
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84







+
+
+
+
+
+
+
+
+
+







#else
typedef SOCKET of_socket_t;
#endif

#ifdef OF_WII
typedef u8 sa_family_t;
#endif

#ifdef OF_MORPHOS
typedef long socklen_t;
typedef u_char sa_family_t;
typedef u_short in_port_t;
#endif

#ifdef OF_MORPHOS_IXEMUL
typedef int socklen_t;
#endif

/*!
 * @brief A socket address family.
 */
typedef enum {
	/** An unknown address family. */
	OF_SOCKET_ADDRESS_FAMILY_UNKNOWN,