From 8188824218ab9c9fb346d4c2d5140f15d5ef75dc Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 22 Aug 2019 20:44:01 +0900 Subject: [PATCH] Fix build warning in c codes There are some build warning observed when building c codes. It is not critical as they are still warning, but it would be better to avoid these warning if possible. Trivial-fix Change-Id: I5f89fc0defce43984471576025636e172630e733 --- scripts/restart_docker_container.c | 2 +- src/c/sbus/sbus.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/restart_docker_container.c b/scripts/restart_docker_container.c index 40df5d98..7bb2d0ca 100644 --- a/scripts/restart_docker_container.c +++ b/scripts/restart_docker_container.c @@ -15,7 +15,7 @@ * --------------------------------------------------------------------------- */ - +#define _GNU_SOURCE #include #include #include diff --git a/src/c/sbus/sbus.c b/src/c/sbus/sbus.c index 1843370f..4e29151f 100644 --- a/src/c/sbus/sbus.c +++ b/src/c/sbus/sbus.c @@ -20,6 +20,7 @@ #include #include +#include #include #include #include