summaryrefslogtreecommitdiff
path: root/system/acpitool/acpitool-0.5-add_string.h.patch
diff options
context:
space:
mode:
authorRodney Cobb <rdc@ktabic.co.uk>2010-05-12 17:44:57 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-12 17:44:57 +0200
commit7e7696327cd7233cec689563f77e01223710b69c (patch)
tree422a65095f8d1d78ce5d4817dceb81e4ac63b2b0 /system/acpitool/acpitool-0.5-add_string.h.patch
parentbf1b7d11d6679eeebba6c686e2f07377121d43f8 (diff)
downloadslackbuilds-7e7696327cd7233cec689563f77e01223710b69c.tar.gz
system/acpitool: Updated for version 0.5
Diffstat (limited to 'system/acpitool/acpitool-0.5-add_string.h.patch')
-rw-r--r--system/acpitool/acpitool-0.5-add_string.h.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/system/acpitool/acpitool-0.5-add_string.h.patch b/system/acpitool/acpitool-0.5-add_string.h.patch
new file mode 100644
index 0000000000..97f1ab3a71
--- /dev/null
+++ b/system/acpitool/acpitool-0.5-add_string.h.patch
@@ -0,0 +1,27 @@
+Trivial patch to add the string.h includes so that newer glibc won't
+ cause errors. This doesn't fix the compiler warnings though.
+Signed-off-by: Robby Workman <rworkman@slackware.com>
+
+diff -Nur acpitool-0.5.orig/src/freq.cpp acpitool-0.5/src/freq.cpp
+--- acpitool-0.5.orig/src/freq.cpp 2008-07-20 17:47:55.000000000 -0500
++++ acpitool-0.5/src/freq.cpp 2009-05-18 10:48:45.151565890 -0500
+@@ -34,7 +34,7 @@
+ #include <dirent.h>
+ #include "acpitool.h"
+ #include "freq.h"
+-
++#include <string.h>
+
+ using namespace std;
+
+diff -Nur acpitool-0.5.orig/src/toshiba.cpp acpitool-0.5/src/toshiba.cpp
+--- acpitool-0.5.orig/src/toshiba.cpp 2007-11-06 15:19:59.000000000 -0600
++++ acpitool-0.5/src/toshiba.cpp 2009-05-18 10:49:00.400887087 -0500
+@@ -33,6 +33,7 @@
+ #include <iomanip>
+ #include <fstream>
+ #include "toshiba.h"
++#include <string.h>
+
+ using namespace std;
+