implicit declaration of function ‘strcasecmp’

XMLWordPrintableJSON

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

      [2016/11/16 17:03:52.703] tests/test-mongoc-topology.c: In function ‘auto_ping’:
      [2016/11/16 17:03:52.703] tests/test-mongoc-topology.c:775:4: error: implicit declaration of function ‘strcasecmp’ [-Werror=implicit-function-declaration]
      [2016/11/16 17:03:52.703]     if (!request->is_command || strcasecmp (request->command_name, "ping")) {
      [2016/11/16 17:03:52.703]     ^
      

      the mongoc-util-private.h has helper for windows for strcasecmp, but its not sufficient to just include that header since it doesn't currently include strings.h

            Assignee:
            Hannes Magnusson (Inactive)
            Reporter:
            Hannes Magnusson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: