Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-80

Rev: 119 does not build on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • 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;
      + }
      +}
      +

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            ashwinkumar Ashwin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: