Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-561

u_int appears in the API

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

      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@mongodb.com Keith Bostic (Inactive)
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: