Opened 6 years ago

Closed 6 years ago

#776 closed defect (fixed)

Fail to build xapian-core/examples/xapian-pos.cc on android.

Reported by: mgautier Owned by: Olly Betts
Priority: normal Milestone: 1.4.11
Component: Examples Version: 1.4.10
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: other

Description

Template function to_unsigned_int use errno but we don't include errno.h On most compiler, the file is included by default but on android (at least), it is not included and the file doesn't compile.

The patch (provided) is pretty simple, just include "errno.h".

Attachments (1)

fix_include_errno.patch (425 bytes ) - added by mgautier 6 years ago.
patch

Download all attachments as: .zip

Change History (3)

by mgautier, 6 years ago

Attachment: fix_include_errno.patch added

patch

comment:1 by Olly Betts, 6 years ago

Milestone: 1.4.11
Status: newassigned

Thanks - we actually prefer to use the C++ #include <cerrno> so I've added that instead (and fixed missing explicit #include <cerrno> in quite a lot of other files too) in [8b0301a12305].

Needs backporting for 1.4.11.

comment:2 by Olly Betts, 6 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.