Ticket #14 (closed defect: released)
pread() on Linux needs #define _XOPEN_SOURCE 500
| Reported by: | C.vanReeuwijk | Owned by: | olly |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Backend-Quartz | Version: | other |
| Severity: | normal | Keywords: | |
| Cc: | Blocked By: | ||
| Operating System: | Linux | Blocking: |
Description
Hi,
Compiling xapian-core-0.7.1 on a current Debian testing system causes a compile-time error on the file `backends/quartz/btree.cc', because pread() is unknown. Consulting the man page of pread() on my system shows:
SYNOPSIS
#define _XOPEN_SOURCE 500 #include <unistd.h>
Adding the #define solves the problem.
I wonder why configure set HAVE_PREAD, but that's secondary.
Change History
Note: See
TracTickets for help on using
tickets.
