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)
Change History (3)
by , 6 years ago
Attachment: | fix_include_errno.patch added |
---|
comment:1 by , 6 years ago
Milestone: | → 1.4.11 |
---|---|
Status: | new → assigned |
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 , 6 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Backported in 24b89149f9ffbc593cbe62c68fa18b627346e8a9.
Note:
See TracTickets
for help on using tickets.
patch