#ifndef ENETUNREACH
#define ENETUNREACH WSAENETUNREACH
#endif
+#ifndef ENOTSUP
+#define ENOTSUP WSAEOPNOTSUPP
+#endif
#undef h_errno
#define h_errno errno /* we'll set it ourselves */
# define CMSG_FIRSTHDR(x) WSA_CMSG_FIRSTHDR(x)
# endif
+struct msghdr {
+ void *msg_name; /* Address to send to/receive from. */
+ socklen_t msg_namelen; /* Length of address data. */
+
+ struct iovec *msg_iov; /* Vector of data to send/receive into. */
+ size_t msg_iovlen; /* Number of elements in the vector. */
+
+ void *msg_control; /* Ancillary data (eg BSD filedesc passing). */
+ size_t msg_controllen; /* Ancillary data buffer length.
+ !! The type should be socklen_t but the
+ definition of the kernel is incompatible
+ with this. */
+
+ int msg_flags; /* Flags on received message. */
+};
+struct iovec {
+
+};
+struct sockaddr_un {
+ char sun_path[256]; /* pathname */
+};
+
/* MinGW missing bits from sys/wait.h */
/* A status looks like:
* <2 bytes info> <2 bytes code>