Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2012

Move MONGOC_ENABLE_SASL_SSPI guard up in mongoc-cluster-sspi.c

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.6.0
    • None
    • libmongoc
    • None

    Description

      Per this GitHub comment, the #ifdef MONGOC_ENABLE_SASL_SSPI guard should be moved above the private header includes, as is done for other C files with conditional code (e.g. mongoc-cluster-sasl.c). As-is, it's possible the trigger the following build error when including this C file when SSPI was not found (i.e. MONGOC_ENABLE_SASL_SSPI is undefined):

      src/mongoc/mongoc-sspi-private.h:32:21: fatal error: Windows.h: No such file or directory

      Attachments

        Activity

          People

            bjori Hannes Magnusson
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: