summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2004-06-26 23:09:25 +0000
committerAlastair Tse <liquidx@gentoo.org>2004-06-26 23:09:25 +0000
commit9e523e63a717d75dcb31243adf517a2cdde86ebd (patch)
treed8392b915d91918cbd29c6496529567d5e148a24 /app-pda/plptools/files
parentadded patch to prevent segv on missing /proc/bus/usb/devices (#42378) (Manife... (diff)
downloadgentoo-2-9e523e63a717d75dcb31243adf517a2cdde86ebd.tar.gz
gentoo-2-9e523e63a717d75dcb31243adf517a2cdde86ebd.tar.bz2
gentoo-2-9e523e63a717d75dcb31243adf517a2cdde86ebd.zip
fix assert header problems (#50150)
Diffstat (limited to 'app-pda/plptools/files')
-rw-r--r--app-pda/plptools/files/plptools-0.12-assert.h.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/app-pda/plptools/files/plptools-0.12-assert.h.patch b/app-pda/plptools/files/plptools-0.12-assert.h.patch
new file mode 100644
index 000000000000..0ff848036758
--- /dev/null
+++ b/app-pda/plptools/files/plptools-0.12-assert.h.patch
@@ -0,0 +1,31 @@
+===================================================================
+RCS file: /cvsroot/plptools/plptools/lib/Enum.h,v
+retrieving revision 1.9
+retrieving revision 1.10
+diff -u -r1.9 -r1.10
+--- plptools/plptools/lib/Enum.h 2003/02/05 07:59:08 1.9
++++ plptools/plptools/lib/Enum.h 2004/03/13 11:15:36 1.10
+@@ -27,6 +27,7 @@
+ #include <config.h>
+ #endif
+
++#include <assert.h>
+ #include <map>
+ #include <string>
+
+@@ -276,13 +277,13 @@
+ * // declaration of enumeration; somewhere
+ * class rfsv {
+ * [...]
+- * enum PSI_ERROR_CODES { E_PSI_GEN_NONE, E_PSI_GEN_FAIL, E_PSI_GEN_ARG };
++ * enum PSI_ERROR_CODES { E_PSI_GEN_NONE, E_PSI_GEN_FAIL, E_PSI_GEN_ARG };
+ * [...]
+ * };
+ *
+ * // definition of the Enum<E> with the appropriate string representations
+ * ENUM_DEFINITION(rfsv::PSI_ERROR_CODES,
+- * rfsv::E_PSI_GEN_NONE) {
++ * rfsv::E_PSI_GEN_NONE) {
+ * stringRep.add(rfsv::E_PSI_GEN_NONE, "no error");
+ * stringRep.add(rfsv::E_PSI_GEN_FAIL, "general");
+ * stringRep.add(rfsv::E_PSI_GEN_ARG, "bad argument");