summaryrefslogtreecommitdiff
path: root/package/at/at-3.1.12-0007-getloadavg-fix.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-01-28 16:03:06 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2010-01-28 16:05:40 +0100
commit97ab9b4c4150bbf5fb973664cbc1f5fad28da41a (patch)
tree5299b4d20380220a2485f426afa99ec2fa52501b /package/at/at-3.1.12-0007-getloadavg-fix.patch
parent819e7f5b788f63bb316afea53325b045337f208a (diff)
at: bump version, fix make install, convert to Makefile.autotools.in format
Make install would fail if target != host, as it tried to use host strip for install -s. Patch 1-5 from ptxdist. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/at/at-3.1.12-0007-getloadavg-fix.patch')
-rw-r--r--package/at/at-3.1.12-0007-getloadavg-fix.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/at/at-3.1.12-0007-getloadavg-fix.patch b/package/at/at-3.1.12-0007-getloadavg-fix.patch
new file mode 100644
index 000000000..2edb4f0d5
--- /dev/null
+++ b/package/at/at-3.1.12-0007-getloadavg-fix.patch
@@ -0,0 +1,30 @@
+[PATCH]: fix getloadavg.c compilation, revert to 3.1.10 version
+
+getloadavg.c shipped with 3.1.12 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>
+---
+ getloadavg.c | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+Index: at-3.1.12/getloadavg.c
+===================================================================
+--- at-3.1.12.orig/getloadavg.c
++++ at-3.1.12/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
+