From c0bc71f0634328745d0bbbf33bb1060807d0414c Mon Sep 17 00:00:00 2001 From: ElonH Date: Sat, 28 Mar 2020 21:07:19 +0800 Subject: [PATCH] cpulimit-ng: missing sys/sysctl.h --- package/ntlf9t/cpulimit-ng/Makefile | 11 +---------- .../patches/001-redict-sys-to-linux.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 package/ntlf9t/cpulimit-ng/patches/001-redict-sys-to-linux.patch diff --git a/package/ntlf9t/cpulimit-ng/Makefile b/package/ntlf9t/cpulimit-ng/Makefile index 82136aadf4..875584a4fa 100644 --- a/package/ntlf9t/cpulimit-ng/Makefile +++ b/package/ntlf9t/cpulimit-ng/Makefile @@ -42,16 +42,7 @@ define Package/cpulimit-ng percentage, not in cpu time). endef -# Specify what needs to be done to prepare for building the package. -# In our case, we need to copy the source files to the build directory. -# This is NOT the default. The default uses the PKG_SOURCE_URL and the -# PKG_SOURCE which is not defined here to download the source from the web. -# In order to just build a simple program that we have just written, it is -# much easier to do it this way. -define Build/Prepare - mkdir -p $(PKG_BUILD_DIR) - $(CP) ./src/* $(PKG_BUILD_DIR)/ -endef +# using default Build/Prepare to enable patch (ElonH) # We do not need to define Build/Configure or Build/Compile directives # The defaults are appropriate for compiling a simple program such as this one diff --git a/package/ntlf9t/cpulimit-ng/patches/001-redict-sys-to-linux.patch b/package/ntlf9t/cpulimit-ng/patches/001-redict-sys-to-linux.patch new file mode 100644 index 0000000000..2b6745731e --- /dev/null +++ b/package/ntlf9t/cpulimit-ng/patches/001-redict-sys-to-linux.patch @@ -0,0 +1,13 @@ +diff --git a/cpulimit.c b/cpulimit.c +index 3af9864..6035d4c 100644 +--- a/cpulimit.c ++++ b/cpulimit.c +@@ -58,7 +58,7 @@ + #include + #include + #include +-#include ++#include + #include + #include +