u_int appears in the API

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • WT1.6.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None

      I came across a compile error when building against WiredTiger today:

      In file included from /home/alexg/work/toku/ft-engine/wt-index/src/wt_tokudb_int.h:7:0,
                       from /home/alexg/work/toku/ft-engine/wt-index/src/wt_api.c:4:
      /home/alexg/work/wiredtiger/build_posix/wiredtiger.h:1996:23: error: unknown type name ‘u_int’
      

      u_int is a BSD type, and the compiler complains if _STRICT_ANSI_ is defined (at least according to stack overflow:
      http://stackoverflow.com/questions/15393905/c-pcap-library-unknown-types-error

      I suspect the solution is to turn the parameter into a u_int32_t, but I decided to create an issue since that's an API change.

            Assignee:
            Keith Bostic (Inactive)
            Reporter:
            Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: