diff options
author | Saya Sugiura <ssugiura@jp.adit-jv.com> | 2020-05-11 14:07:08 +0900 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2020-07-06 10:04:07 +0900 |
commit | 72e8fe4e89162370dce4742f1b69ebfec3ac3928 (patch) | |
tree | 143621178246aedacbc9f59acd95cca61b1108b6 /include/dlt | |
parent | 404bc3934bcb0bbb5671a84ecb45c95069bc1ab3 (diff) | |
download | DLT-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 'include/dlt')
-rw-r--r-- | include/dlt/dlt_user.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dlt/dlt_user.h b/include/dlt/dlt_user.h index 41484b6..a3741fa 100644 --- a/include/dlt/dlt_user.h +++ b/include/dlt/dlt_user.h @@ -76,6 +76,9 @@ #ifdef DLT_NETWORK_TRACE_ENABLE # include <mqueue.h> +#else +# include <sys/types.h> +# include <fcntl.h> #endif # include <pthread.h> |