summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGianfranco Costamagna <costamagnagianfranco@yahoo.it>2020-01-25 09:20:48 +0100
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2020-01-27 11:54:34 +0900
commit4259bed2e11bc8c4b6ef4c71ba300db13df42110 (patch)
tree94c28451b6e47a66fa0bca22d1584ec5567b3415
parent379738ec71edcf9cde044217956e4b5f21352711 (diff)
downloadDLT-daemon-4259bed2e11bc8c4b6ef4c71ba300db13df42110.tar.gz
sys/poll.h: deprecate old sys/poll.h include header, now glibc/musl wants 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>
-rw-r--r--src/console/logstorage/dlt-logstorage-ctrl.c2
-rw-r--r--src/daemon/dlt_daemon_event_handler.c2
-rw-r--r--src/daemon/dlt_daemon_event_handler.h2
-rw-r--r--src/daemon/dlt_daemon_event_handler_types.h2
-rw-r--r--src/lib/dlt_user.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/console/logstorage/dlt-logstorage-ctrl.c b/src/console/logstorage/dlt-logstorage-ctrl.c
index 525c137..6614f44 100644
--- a/src/console/logstorage/dlt-logstorage-ctrl.c
+++ b/src/console/logstorage/dlt-logstorage-ctrl.c
@@ -61,7 +61,7 @@
#include <string.h>
#include <getopt.h>
-#include <sys/poll.h>
+#include <poll.h>
#if defined(__linux__)
# include "sd-daemon.h"
diff --git a/src/daemon/dlt_daemon_event_handler.c b/src/daemon/dlt_daemon_event_handler.c
index 1611f7b..0d463da 100644
--- a/src/daemon/dlt_daemon_event_handler.c
+++ b/src/daemon/dlt_daemon_event_handler.c
@@ -30,7 +30,7 @@
#include <string.h>
#include <errno.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <syslog.h>
#include "dlt_common.h"
diff --git a/src/daemon/dlt_daemon_event_handler.h b/src/daemon/dlt_daemon_event_handler.h
index eb96101..bd550d3 100644
--- a/src/daemon/dlt_daemon_event_handler.h
+++ b/src/daemon/dlt_daemon_event_handler.h
@@ -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"
diff --git a/src/daemon/dlt_daemon_event_handler_types.h b/src/daemon/dlt_daemon_event_handler_types.h
index 370e503..0b16d08 100644
--- a/src/daemon/dlt_daemon_event_handler_types.h
+++ b/src/daemon/dlt_daemon_event_handler_types.h
@@ -25,7 +25,7 @@
* \file dlt_daemon_event_handler_types.h
*/
-#include <sys/poll.h>
+#include <poll.h>
#include "dlt_daemon_connection_types.h"
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c
index ffa9b09..511f991 100644
--- a/src/lib/dlt_user.c
+++ b/src/lib/dlt_user.c
@@ -43,7 +43,7 @@
#include <errno.h>
#include <sys/uio.h> /* writev() */
-#include <sys/poll.h>
+#include <poll.h>
#include <limits.h>
#ifdef linux