Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-994

Fix HAVE_SOCKLEN_T macro redefinition for Windows builds

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0-RC1, 1.3.0
    • Affects Version/s: 1.3.0-beta1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows

      Caused by the following lines in config.w32, which were added in 0555447 for PHPC-892.

      if (CHECK_FUNC_IN_HEADER("ws2tcpip.h", "socklen_t")) {
        mongoc_opts.MONGOC_HAVE_SOCKLEN = 1;
      }
      

      This check apparently fails, but Windows does have "socklen_t" defined.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: