mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/vdr: Fix patch for uclibc build
uClibc-ng 1.0.42 added support for getloadavg:
https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=ad3a130dad88ad7a59dcd965b0cf9bd0d713595e
leading to build errors of the vdr package:
skinlcars.c:1105:12: error: 'int getloadavg(double*, int)' was declared 'extern' and later 'static' [-fpermissive]
since its version bump in buildroot:
https://git.busybox.net/buildroot/commit/?id=61ae6add9e5d4761536fa4ff24150d5f8f82a61d
Fixes:
http://autobuild.buildroot.net/results/d3a/d3a65044fabdafa1b6d75a508eae006a2cfebdc0/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
(cherry picked from commit f3b46aa2aa)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
426a4509bb
commit
ac5af7b883
@@ -14,7 +14,7 @@ diff -uwNr vdr-2.3.1.org/skinlcars.c vdr-2.3.1/skinlcars.c
|
|||||||
|
|
||||||
+/* uclibc and dietlibc do not have this junk -ReneR */
|
+/* uclibc and dietlibc do not have this junk -ReneR */
|
||||||
+#if defined (__UCLIBC__) || defined (__dietlibc__)
|
+#if defined (__UCLIBC__) || defined (__dietlibc__)
|
||||||
+static int getloadavg (double loadavg[], int nelem)
|
+int getloadavg (double loadavg[], int nelem)
|
||||||
+{
|
+{
|
||||||
+ int fd;
|
+ int fd;
|
||||||
+
|
+
|
||||||
|
|||||||
Reference in New Issue
Block a user