From 66c215799db34cf081d8a2db88892356e100ea37 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 3 Jul 2019 20:54:14 -0700 Subject: [PATCH] setserial: Add missing headers Fixes compilation with -Wimplicit-function-declaration Signed-off-by: Rosen Penev --- utils/setserial/Makefile | 5 ++--- utils/setserial/patches/020-musl.patch | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 utils/setserial/patches/020-musl.patch diff --git a/utils/setserial/Makefile b/utils/setserial/Makefile index 8279d3e13..e11adb2a3 100644 --- a/utils/setserial/Makefile +++ b/utils/setserial/Makefile @@ -2,15 +2,14 @@ include $(TOPDIR)/rules.mk PKG_NAME:=setserial PKG_VERSION:=2.17 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/setserial PKG_HASH:=7e4487d320ac31558563424189435d396ddf77953bb23111a17a3d1487b5794a PKG_MAINTAINER:=Jo-Philipp Wich -PKG_LICENSE:=GPL-2.0 - +PKG_LICENSE:=GPL-2.0-only include $(INCLUDE_DIR)/package.mk diff --git a/utils/setserial/patches/020-musl.patch b/utils/setserial/patches/020-musl.patch new file mode 100644 index 000000000..7b2659401 --- /dev/null +++ b/utils/setserial/patches/020-musl.patch @@ -0,0 +1,19 @@ +--- a/setserial.c ++++ b/setserial.c +@@ -11,6 +11,8 @@ + */ + + #include ++#include ++#include + #include + #include + #include +@@ -22,6 +24,7 @@ + #ifdef HAVE_LINUX_HAYESESP_H + #include + #endif ++#include + #include + + #include "version.h"