diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2008-05-08 07:42:38 +0000 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2008-05-08 07:42:38 +0000 |
commit | c47817027f38520b0634bc2eba1effe90a2a84bf (patch) | |
tree | 998faeba4d0cac9c27d830370cd3559cae4f4619 /app-crypt/coolkey/files | |
parent | Fix bug #219387 (diff) | |
download | gentoo-2-c47817027f38520b0634bc2eba1effe90a2a84bf.tar.gz gentoo-2-c47817027f38520b0634bc2eba1effe90a2a84bf.tar.bz2 gentoo-2-c47817027f38520b0634bc2eba1effe90a2a84bf.zip |
Fix gcc-4.3 issue, bug#220783, thanks to Peter Alfredsen
(Portage version: 2.1.5_rc7)
Diffstat (limited to 'app-crypt/coolkey/files')
-rw-r--r-- | app-crypt/coolkey/files/coolkey-1.1.0-gcc-4.3.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/app-crypt/coolkey/files/coolkey-1.1.0-gcc-4.3.patch b/app-crypt/coolkey/files/coolkey-1.1.0-gcc-4.3.patch new file mode 100644 index 000000000000..5e41b5ab702b --- /dev/null +++ b/app-crypt/coolkey/files/coolkey-1.1.0-gcc-4.3.patch @@ -0,0 +1,54 @@ +diff -up ./src/coolkey/slot.cpp.coolkey-gcc43 ./src/coolkey/slot.cpp +--- ./src/coolkey/slot.cpp.coolkey-gcc43 2008-02-13 18:01:45.000000000 -0800 ++++ ./src/coolkey/slot.cpp 2008-02-13 18:03:05.000000000 -0800 +@@ -25,7 +25,6 @@ + #include "PKCS11Exception.h" + #include <winscard.h> + #include "slot.h" +-#include <memory.h> + #include "zlib.h" + #include "params.h" + +@@ -33,7 +32,6 @@ + + #define MIN(x, y) ((x) < (y) ? (x) : (y)) + +-using std::auto_ptr; + + + #ifdef DEBUG +diff -up ./src/coolkey/machdep.cpp.coolkey-gcc43 ./src/coolkey/machdep.cpp +--- ./src/coolkey/machdep.cpp.coolkey-gcc43 2008-02-13 18:02:06.000000000 -0800 ++++ ./src/coolkey/machdep.cpp 2008-02-13 18:04:04.000000000 -0800 +@@ -33,6 +33,8 @@ + #include <sys/stat.h> + #include <sys/mman.h> + #include <pthread.h> ++#include <string.h> ++#include <stdlib.h> + #endif + + #ifdef _WIN32 +diff -up ./src/coolkey/log.cpp.coolkey-gcc43 ./src/coolkey/log.cpp +--- ./src/coolkey/log.cpp.coolkey-gcc43 2008-02-13 18:01:55.000000000 -0800 ++++ ./src/coolkey/log.cpp 2008-02-13 18:03:37.000000000 -0800 +@@ -18,6 +18,8 @@ + * ***** END COPYRIGHT BLOCK *****/ + + #include <string> ++#include <string.h> ++#include <stdlib.h> + #include "mypkcs11.h" + #include <assert.h> + #include <stdio.h> +diff -up ./src/coolkey/object.cpp.coolkey-gcc43 ./src/coolkey/object.cpp +--- ./src/coolkey/object.cpp.coolkey-gcc43 2008-02-13 18:02:20.000000000 -0800 ++++ ./src/coolkey/object.cpp 2008-02-13 18:04:22.000000000 -0800 +@@ -21,6 +21,7 @@ + #include "PKCS11Exception.h" + #include "object.h" + #include <algorithm> ++#include <string.h> + + using std::find_if; + |