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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None

      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

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

              Created:
              Updated:
              Resolved: