summaryrefslogtreecommitdiff
path: root/src/daemon
diff options
context:
space:
mode:
authorSaya Sugiura <ssugiura@jp.adit-jv.com>2020-05-11 14:07:08 +0900
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2020-07-06 10:04:07 +0900
commit72e8fe4e89162370dce4742f1b69ebfec3ac3928 (patch)
tree143621178246aedacbc9f59acd95cca61b1108b6 /src/daemon
parent404bc3934bcb0bbb5671a84ecb45c95069bc1ab3 (diff)
downloadDLT-daemon-72e8fe4e89162370dce4742f1b69ebfec3ac3928.tar.gz
network trace: Include necessary headers
Some components which links dlt seem to depend on following headers, which will be included by mqueue.h. - sys/types.h - fcntl.h So explicitly include them if mqueue interface is not supported in dlt_user.h. Also two headers are removed if dlt_used.h is included. Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/dlt_daemon_client.c2
-rw-r--r--src/daemon/dlt_daemon_common.c2
-rw-r--r--src/daemon/dlt_daemon_serial.c2
-rw-r--r--src/daemon/dlt_daemon_socket.c2
4 files changed, 0 insertions, 8 deletions
diff --git a/src/daemon/dlt_daemon_client.c b/src/daemon/dlt_daemon_client.c
index c47c808..3560910 100644
--- a/src/daemon/dlt_daemon_client.c
+++ b/src/daemon/dlt_daemon_client.c
@@ -33,7 +33,6 @@
#include <stdlib.h> /* for atoi() and exit() */
#include <string.h> /* for memset() */
#include <unistd.h> /* for close() */
-#include <fcntl.h>
#include <signal.h>
#include <syslog.h>
#include <errno.h>
@@ -42,7 +41,6 @@
#ifdef linux
# include <sys/timerfd.h>
#endif
-#include <sys/stat.h>
#include <sys/time.h>
#if defined(linux) && defined(__NR_statx)
# include <linux/stat.h>
diff --git a/src/daemon/dlt_daemon_common.c b/src/daemon/dlt_daemon_common.c
index d96d8f2..f628cd5 100644
--- a/src/daemon/dlt_daemon_common.c
+++ b/src/daemon/dlt_daemon_common.c
@@ -71,9 +71,7 @@
#include <syslog.h>
#include <errno.h>
#include <unistd.h>
-#include <fcntl.h>
-#include <sys/types.h> /* send() */
#include <sys/socket.h> /* send() */
#include "dlt_types.h"
diff --git a/src/daemon/dlt_daemon_serial.c b/src/daemon/dlt_daemon_serial.c
index 4cdd7b4..36b7990 100644
--- a/src/daemon/dlt_daemon_serial.c
+++ b/src/daemon/dlt_daemon_serial.c
@@ -57,9 +57,7 @@
#include <syslog.h>
#include <errno.h>
#include <unistd.h>
-#include <fcntl.h>
-#include <sys/types.h> /* send() */
#include <sys/socket.h> /* send() */
#include "dlt-daemon.h"
diff --git a/src/daemon/dlt_daemon_socket.c b/src/daemon/dlt_daemon_socket.c
index a2cf08a..50bf68e 100644
--- a/src/daemon/dlt_daemon_socket.c
+++ b/src/daemon/dlt_daemon_socket.c
@@ -34,7 +34,6 @@
#include <stdlib.h> /* for atoi() and exit() */
#include <string.h> /* for memset() */
#include <unistd.h> /* for close() */
-#include <fcntl.h>
#include <signal.h>
#include <syslog.h>
#include <errno.h>
@@ -44,7 +43,6 @@
#ifdef linux
# include <sys/timerfd.h>
#endif
-#include <sys/stat.h>
#include <sys/time.h>
#if defined(linux) && defined(__NR_statx)
# include <linux/stat.h>