Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dbus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 249
    • Issues 249
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 33
    • Merge requests 33
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • dbus
  • dbus
  • Merge requests
  • !148

sysdeps: use POSIX poll.h instead of sys/poll.h

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Natanael Copa requested to merge ncopa/dbus:fix-poll-header into master Mar 24, 2020
  • Overview 16
  • Commits 1
  • Pipelines 4
  • Changes 4

POSIX.1-2001 and POSIX.1-2008 specifies include <poll.h> so use that rather than the non-standard/legacy include <sys/poll.h>.

This fixes the following warnings when building with musl libc:

1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
  |  ^~~~~~~

We keep include <sys/poll.h> as fallback incase AIX has not yet adjusted to POSIX.1-2001.

Signed-off-by: Natanael Copa ncopa@alpinelinux.org

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix-poll-header