Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
-
None
-
None
-
Windows
Description
violite.c(210): error C2065: 'retrn' : undeclared identifier
violite.c(210): error C2146: syntax error : missing ';' before identifier 'length'
violite.c(220): error C2059: syntax error : 'break'
caused in the patch for rev 119
@@ -185,39 +193,65 @@
return socket_errno; /* On Win32 this mapped to WSAGetLastError() */
}
+size_t vio_real_read(Vio *vio, gptr buf, size_t size)
+{
+ switch(vio->type) {
+#ifdef HAVE_OPENSSL
+ case VIO_TYPE_SSL:
+ return my_ssl_read(vio, (char *)buf, size);
+ break;
+#endif
+#ifdef _WIN32
+ case VIO_TYPE_NAMEDPIPE:
+
+ break;
+#endif
+ default:
+ return recv(vio->sd, buf, (int)
+ size, 0);
+#ifdef _WIN32
+ (int)
+#endif
+ break;
+ }
+}
+