From 8e361ff77db65796be34a1356c6864b9f2734bda Mon Sep 17 00:00:00 2001 From: arved Date: Fri, 13 Mar 2009 18:15:57 +0000 Subject: Unbreak on 64bit platforms --- archivers/xmill/Makefile | 4 ---- archivers/xmill/files/patch-XMill-CompressMan.cpp | 11 +++++++++++ archivers/xmill/files/patch-XMill-PPMDI.cpp | 11 +++++++++++ 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 archivers/xmill/files/patch-XMill-CompressMan.cpp create mode 100644 archivers/xmill/files/patch-XMill-PPMDI.cpp (limited to 'archivers/xmill') diff --git a/archivers/xmill/Makefile b/archivers/xmill/Makefile index bbcbe7ba1851..471fc06b022f 100644 --- a/archivers/xmill/Makefile +++ b/archivers/xmill/Makefile @@ -27,10 +27,6 @@ PORTEXAMPLES= * .include -.if ( ${ARCH} == "amd64" || ${ARCH} == "sparc64" ) && ${OSVERSION} >= 700043 -BROKEN= does not compile -.endif - post-patch: # Allow to build with modern GCC @${REINPLACE_CMD} -e 's,friend,& class,' ${WRKSRC}/XMill/*.?pp \ diff --git a/archivers/xmill/files/patch-XMill-CompressMan.cpp b/archivers/xmill/files/patch-XMill-CompressMan.cpp new file mode 100644 index 000000000000..0df8b5694305 --- /dev/null +++ b/archivers/xmill/files/patch-XMill-CompressMan.cpp @@ -0,0 +1,11 @@ +--- XMill/CompressMan.cpp.orig 2009-03-13 19:11:05.000000000 +0100 ++++ XMill/CompressMan.cpp 2009-03-13 19:11:08.000000000 +0100 +@@ -423,7 +423,7 @@ + UserCompressorFactory *compressor=compressorlist; + while(compressor!=NULL) + { +- printf("%lu =>",(unsigned int)compressor); ++ printf("%lu =>",(unsigned intptr_t)compressor); + printf("%s\n",compressor->GetName()); + compressor=compressor->next; + } diff --git a/archivers/xmill/files/patch-XMill-PPMDI.cpp b/archivers/xmill/files/patch-XMill-PPMDI.cpp new file mode 100644 index 000000000000..8080202fddc5 --- /dev/null +++ b/archivers/xmill/files/patch-XMill-PPMDI.cpp @@ -0,0 +1,11 @@ +--- XMill/PPMDI.cpp.orig 2009-03-13 19:12:05.000000000 +0100 ++++ XMill/PPMDI.cpp 2009-03-13 19:12:29.000000000 +0100 +@@ -245,7 +245,7 @@ + + cleanup: + *outused = j; +- *inused = inlen - (int)endptr + (int)src; ++ *inused = inlen - (intptr_t)endptr + (intptr_t)src; + return ret; + } + -- cgit