summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Schleifer <js@heap.zone>2019-05-06 00:29:00 +0200
committerJonathan Schleifer <js@heap.zone>2019-05-06 00:29:00 +0200
commit992f1edcec6747696b53a06ff095c87acf987ff0 (patch)
tree05f454ee4709c78e4777a7dcfceeb2eab825feab
parent7e8cfd972b6726a217632494276e9596a6d2be14 (diff)
socket.h: Add typedefs missing on MorphOS
-rw-r--r--src/socket.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/socket.h b/src/socket.h
index e3984e52..9169e13f 100644
--- a/src/socket.h
+++ b/src/socket.h
@@ -44,13 +44,6 @@
/*! @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
@@ -73,6 +66,16 @@ typedef SOCKET of_socket_t;
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.
*/