]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Emulated some data-structures missing on Windows
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 22 Jan 2012 21:33:41 +0000 (22:33 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 22 Jan 2012 21:33:41 +0000 (22:33 +0100)
compat/os/mswin.h

index 42d9847b6215940367bfd4d11475e0fac4970ddf..077e28a71d0c9e1346ed64bf26c60a0a8d20d162 100644 (file)
@@ -297,6 +297,9 @@ typedef char * caddr_t;
 #ifndef ENETUNREACH
 #define ENETUNREACH WSAENETUNREACH
 #endif
+#ifndef ENOTSUP
+#define ENOTSUP WSAEOPNOTSUPP
+#endif
 
 #undef h_errno
 #define h_errno errno /* we'll set it ourselves */
@@ -843,6 +846,28 @@ void syslog(int priority, const char *fmt, ...);
 #  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>