Skip to content

Commit

Permalink
sys/poll.h: deprecate old sys/poll.h include header, now glibc/musl w…
Browse files Browse the repository at this point in the history
…ants poll.h being included directly.

This fixes a build failure on musl systems with strict c hardening flags

Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
  • Loading branch information
LocutusOfBorg authored and ssugiura committed Jan 27, 2020
1 parent 379738e commit 4259bed
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/console/logstorage/dlt-logstorage-ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
#include <string.h>
#include <getopt.h>

#include <sys/poll.h>
#include <poll.h>

#if defined(__linux__)
# include "sd-daemon.h"
Expand Down
2 changes: 1 addition & 1 deletion src/daemon/dlt_daemon_event_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <string.h>
#include <errno.h>

#include <sys/poll.h>
#include <poll.h>
#include <syslog.h>

#include "dlt_common.h"
Expand Down
2 changes: 1 addition & 1 deletion src/daemon/dlt_daemon_event_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* \file dlt_daemon_event_handler.h
*/

#include <sys/poll.h>
#include <poll.h>

#include "dlt_daemon_connection_types.h"
#include "dlt_daemon_event_handler_types.h"
Expand Down
2 changes: 1 addition & 1 deletion src/daemon/dlt_daemon_event_handler_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* \file dlt_daemon_event_handler_types.h
*/

#include <sys/poll.h>
#include <poll.h>

#include "dlt_daemon_connection_types.h"

Expand Down
2 changes: 1 addition & 1 deletion src/lib/dlt_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include <errno.h>

#include <sys/uio.h> /* writev() */
#include <sys/poll.h>
#include <poll.h>

#include <limits.h>
#ifdef linux
Expand Down

0 comments on commit 4259bed

Please sign in to comment.