diff options
author | Simon Stelling <blubb@gentoo.org> | 2004-11-12 18:36:38 +0000 |
---|---|---|
committer | Simon Stelling <blubb@gentoo.org> | 2004-11-12 18:36:38 +0000 |
commit | e81550b108fe8994b82bcfca53026111513b2a5a (patch) | |
tree | 7f8968ba97c855c9cba1501b8dfd6201edbb4fd4 /games-puzzle/quadra/files/quadra-1.1.8-amd64.patch | |
parent | Stable on sparc (Manifest recommit) (diff) | |
download | gentoo-2-e81550b108fe8994b82bcfca53026111513b2a5a.tar.gz gentoo-2-e81550b108fe8994b82bcfca53026111513b2a5a.tar.bz2 gentoo-2-e81550b108fe8994b82bcfca53026111513b2a5a.zip |
added patch and ~amd64
Diffstat (limited to 'games-puzzle/quadra/files/quadra-1.1.8-amd64.patch')
-rw-r--r-- | games-puzzle/quadra/files/quadra-1.1.8-amd64.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/games-puzzle/quadra/files/quadra-1.1.8-amd64.patch b/games-puzzle/quadra/files/quadra-1.1.8-amd64.patch new file mode 100644 index 000000000000..925f20a31305 --- /dev/null +++ b/games-puzzle/quadra/files/quadra-1.1.8-amd64.patch @@ -0,0 +1,38 @@ +--- quadra-1.1.8/skelton/common/net.cpp 2004-11-01 05:12:11.097347848 -0100 ++++ quadra-1.1.8-fix/skelton/common/net.cpp 2004-11-01 05:15:13.875561336 -0100 +@@ -41,7 +41,7 @@ + #include <netdb.h> + #include <string.h> + #include <fcntl.h> +-typedef size_t addr_size_t; ++typedef socklen_t addr_size_t; + inline int closesocket(int fd) { + return close(fd); + } +--- quadra-1.1.8/skelton/svgalib/video_x11_24.cpp 2001-10-11 19:35:14.000000000 -0100 ++++ quadra-1.1.8-fix/skelton/svgalib/video_x11_24.cpp 2004-11-01 20:03:16.513369160 -0100 +@@ -63,7 +63,12 @@ + }; + #pragma pack() + ++#ifdef _LP64 ++ unsigned int* buf32; ++#else + unsigned long* buf32; ++#endif ++ + Pixel3* buf24; + int x, y; + +@@ -82,7 +87,11 @@ + ((PixelValue*)(&colors[vfb[(y * width) +x]]))->pixel; + } else { + /* Conversion of the 8 bpp buffer to a 32 bpp buffer. */ ++#ifdef _LP64 ++ buf32 = (unsigned int*) image->data; ++#else + buf32 = (unsigned long*) image->data; ++#endif + for(y = 0; y < 480; y++) + for(x = min_x[y]; x <= max_x[y]; x++) + buf32[(y * width) + x] = |