Bug #2374 LSB MySQL Porting Notes: include <poll.h> instead of <sys/poll.h>
Submitted: 13 Jan 2004 9:06 Modified: 28 Jul 20:38
Reporter: Lenz Grimmer
Status: Verified
Category:Server: Compiling Severity:S3 (Non-critical)
Version:4.0.14,5.1 OS:Linux (Linux)
Assigned to: Target Version:
Triage: Triaged: D4 (Minor)

[13 Jan 2004 9:06] Lenz Grimmer
Description:
Excerpt from an email from Mats Wichmann with notes of a build of
MySQL 4.0.14 on an LSB system:

http://freestandards.org/pipermail/lsb-appbat/2003-October/001037.html

[SNIP]
6. include/my_net.h does #include <sys/poll.h>
Applications aligned with POSIX are supposed to
include <poll.h>; <sys/poll.h> might exist but
is not described by source standards.  It turns
out that this is completely invisible on GNU/Linux,
where <poll.h> directly includes <sys/poll.h>, but=20
in the LSB, the function prototype for poll appears=20
in the user-level header <poll.h> so including
<sys/poll.h> leaves it undeclared, and causes a
build problem.
[SNIP]

How to repeat:
Try to perform a MySQL build on an LSB development platform
[26 Jan 2004 9:34] Sergei Golubchik
moved to a todo: WL#1449
[28 Jul 20:38] Miguel Solorzano
Back to verified. Same reason of http://bugs.mysql.com/bug.php?id=2371.