1From 4eda31cea9fb3c77fe2748a65960f24ffb42f9ff Mon Sep 17 00:00:00 2001 2From: Peter Korsgaard <jacmet@sunsite.dk> 3Date: Fri, 23 Jul 2021 16:51:17 +0200 4Subject: [PATCH] getloadavg: fix getloadavg.c compilation, revert to 3.1.10 5 version 6 7getloadavg.c shipped with 3.1.13 doesn't compile because it references 8headers not shipped. Fix it by simply reverting to the 3.1.10 version. 9 10Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> 11Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> 12[Giulio: convert patch to git format] 13--- 14 getloadavg.c | 7 ++++--- 15 1 file changed, 4 insertions(+), 3 deletions(-) 16 17diff --git a/getloadavg.c b/getloadavg.c 18index cf5869f..23d18eb 100644 19--- a/getloadavg.c 20+++ b/getloadavg.c 21@@ -66,11 +66,12 @@ Boston, MA 02110-1301 USA */ 22 23 /* This should always be first. */ 24 #ifdef HAVE_CONFIG_H 25-#include <config.h> 26+#include "config.h" 27 #endif 28 29-#include "lisp.h" 30-#include "sysfile.h" /* for encapsulated open, close, read, write */ 31+#include <sys/types.h> 32+#include <sys/stat.h> 33+#include <fcntl.h> 34 35 #ifndef HAVE_GETLOADAVG 36 37-- 382.25.1 39 40