2021-07-23 22:08:36 +02:00
|
|
|
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
|
2010-01-28 16:03:06 +01:00
|
|
|
|
2013-04-13 08:52:41 +02:00
|
|
|
getloadavg.c shipped with 3.1.13 doesn't compile because it references
|
2010-01-28 16:03:06 +01:00
|
|
|
headers not shipped. Fix it by simply reverting to the 3.1.10 version.
|
|
|
|
|
|
|
|
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
|
2021-07-23 22:08:36 +02:00
|
|
|
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
|
|
|
|
[Giulio: convert patch to git format]
|
2010-01-28 16:03:06 +01:00
|
|
|
---
|
2021-07-23 22:08:36 +02:00
|
|
|
getloadavg.c | 7 ++++---
|
2010-01-28 16:03:06 +01:00
|
|
|
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
|
|
|
2021-07-23 22:08:36 +02:00
|
|
|
diff --git a/getloadavg.c b/getloadavg.c
|
|
|
|
index cf5869f..23d18eb 100644
|
|
|
|
--- a/getloadavg.c
|
|
|
|
+++ b/getloadavg.c
|
2010-01-28 16:03:06 +01:00
|
|
|
@@ -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
|
|
|
|
|
2021-07-23 22:08:36 +02:00
|
|
|
--
|
|
|
|
2.25.1
|
|
|
|
|