Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-1449

NI_MAXHOST and NI_MAXSERV undefined

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.2.2
    • 3.2.0
    • library
    • 1

    Description

      During the last release of the Node.js SDK, I was unable to get libcouchbase to build on some platforms under gyp without manually specifying the NI_MAXHOST and NI_MAXSERV values manually. I spent a bit of time confirming the appropriate headers and defines were being used. Ended up needing to resort to adding those defines within hostlist.h. I believe there is some sort of include chain that's preventing the appropriate inclusion of the header for those defines.

      #ifndef NI_MAXHOST
      #define NI_MAXHOST 1025
      #endif
      #ifndef NI_MAXSERV
      #define NI_MAXSERV 32
      #endif

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            avsej Sergey Avseyev
            brett19 Brett Lawson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty