[CONC-80] Rev: 119 does not build on Windows Created: 2014-03-03  Updated: 2014-03-03  Resolved: 2014-03-03

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Ashwin Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: compile, windows
Environment:

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:
+

{ + DWORD length= 0; + if (!ReadFile(vio->hPipe, buf, (DWORD)size, &length, NULL)) + return -1; + retrn length; + }

+ break;
+#endif
+ default:
+ return recv(vio->sd, buf, (int)
+ size, 0);
+#ifdef _WIN32
+ (int)
+#endif
+ break;
+ }
+}
+



 Comments   
Comment by Georg Richter [ 2014-03-03 ]

Looks like you just grabbed the version before uncommit and push.

Please do:
bzr uncommit
bzr revert
bzr pull

Generated at Thu Feb 08 03:02:44 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.