kumquat-buildroot/package/at/0003-getloadavg-fix-getloadavg.c-compilation-revert-to-3..patch
Giulio Benetti c77d8494a1 package/at: convert local patches to git format
Convert local patches to git format. Note that some of them change name
because of use of 'git format-patch'.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-07-25 15:03:46 +02:00

40 lines
1.1 KiB
Diff

From 4eda31cea9fb3c77fe2748a65960f24ffb42f9ff Mon Sep 17 00:00:00 2001
From: Peter Korsgaard <jacmet@sunsite.dk>
Date: Fri, 23 Jul 2021 16:51:17 +0200
Subject: [PATCH] getloadavg: fix getloadavg.c compilation, revert to 3.1.10
version
getloadavg.c shipped with 3.1.13 doesn't compile because it references
headers not shipped. Fix it by simply reverting to the 3.1.10 version.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
[Giulio: convert patch to git format]
---
getloadavg.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/getloadavg.c b/getloadavg.c
index cf5869f..23d18eb 100644
--- a/getloadavg.c
+++ b/getloadavg.c
@@ -66,11 +66,12 @@ Boston, MA 02110-1301 USA */
/* This should always be first. */
#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "config.h"
#endif
-#include "lisp.h"
-#include "sysfile.h" /* for encapsulated open, close, read, write */
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
#ifndef HAVE_GETLOADAVG
--
2.25.1