SOURCES: kacpi-gcc43.patch (NEW) - new

adamg adamg at pld-linux.org
Sat Aug 16 20:02:14 CEST 2008


Author: adamg                        Date: Sat Aug 16 18:02:14 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- new

---- Files affected:
SOURCES:
   kacpi-gcc43.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/kacpi-gcc43.patch
diff -u /dev/null SOURCES/kacpi-gcc43.patch:1.1
--- /dev/null	Sat Aug 16 20:02:15 2008
+++ SOURCES/kacpi-gcc43.patch	Sat Aug 16 20:02:09 2008
@@ -0,0 +1,50 @@
+--- kacpi-0.6.3e/kasetperm/kasetperm.cc~	2003-02-15 15:40:45.000000000 +0100
++++ kacpi-0.6.3e/kasetperm/kasetperm.cc	2008-08-16 19:49:14.362598316 +0200
+@@ -16,7 +16,7 @@
+  ***************************************************************************/
+ 
+ 
+-#include <iostream.h>
++#include <iostream>
+ #include <string.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+@@ -26,8 +26,8 @@
+ FILE *fp;
+ char *filename;
+ 
+- cout << "Option : "<< argv[1]<< endl;
+- cout << "Option : "<< argv[2]<< endl;
++  std::cout << "Option : "<< argv[1]<< std::endl;
++  std::cout << "Option : "<< argv[2]<< std::endl;
+ 
+  if ((strcmp(argv[1], "0"))==0)
+   {
+@@ -40,7 +40,7 @@
+ 
+  if ((strcmp(argv[2], "up"))==0)
+   {
+-   cout << "CPU up"<< endl;
++	  std::cout << "CPU up"<< std::endl;
+    if ((fp = fopen(filename, "w"))!= NULL)
+     {
+      fprintf(fp, "0");
+@@ -49,7 +49,7 @@
+   }
+    else if ((strcmp(argv[2], "down"))==0)
+   {
+-   cout << "CPU down"<< endl;
++	  std::cout << "CPU down"<< std::endl;
+    if ((fp = fopen(filename, "w"))!= NULL)
+     {
+      fprintf(fp, "1");
+--- kacpi-0.6.3e/kacpi/kacpi.cc~	2003-03-12 21:08:32.000000000 +0100
++++ kacpi-0.6.3e/kacpi/kacpi.cc	2008-08-16 19:54:54.619336527 +0200
+@@ -28,6 +28,7 @@
+ #include <sstream>
+ #include <fstream>
+ #include <map>
++#include <cstdlib>
+ 
+ #include "dock.h"
+ #include "kacpi.moc"
================================================================


More information about the pld-cvs-commit mailing list