cpulimit-ng: missing sys/sysctl.h
This commit is contained in:
parent
424d547cf1
commit
c0bc71f063
@ -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<elonhhuang@gmail.com>)
|
||||
|
||||
# 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
|
||||
|
||||
@ -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 <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
-#include <sys/sysctl.h>
|
||||
+#include <linux/sysctl.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user