summaryrefslogtreecommitdiff
path: root/src/daemon
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 /src/daemon
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>
Diffstat (limited to 'src/daemon')
-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
3 files changed, 3 insertions, 3 deletions
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"