diff options
author | David Spencer <baildon.research@googlemail.com> | 2015-07-27 23:38:47 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-17 09:40:16 +0700 |
commit | 948f0ac5b9c489d4fa8cbb57fb7b8add86021e3a (patch) | |
tree | 76db60499e9b189e42b484fe4156d08232084c6d /academic/celestia/celestia-1.6.1-libpng16.patch | |
parent | fc050f8db59ed25c184581f57ad4c640d8e56a8e (diff) |
academic/celestia: Patched for libpng16.
Fixes build failure on -current.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/celestia/celestia-1.6.1-libpng16.patch')
-rw-r--r-- | academic/celestia/celestia-1.6.1-libpng16.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/academic/celestia/celestia-1.6.1-libpng16.patch b/academic/celestia/celestia-1.6.1-libpng16.patch new file mode 100644 index 0000000000000..78911cb557551 --- /dev/null +++ b/academic/celestia/celestia-1.6.1-libpng16.patch @@ -0,0 +1,25 @@ +image.cpp:530:61: error: ‘memcpy’ was not declared in this scope + +https://bugs.gentoo.org/show_bug.cgi?id=464764 + +Patch written by Lars Wendler <polynomial-c@gentoo.org> +--- a/celestia/src/celengine/image.cpp ++++ b/celestia/src/celengine/image.cpp +@@ -42,6 +42,7 @@ extern "C" { + #include "jpeglib.h" + #else + #include <cstdio> ++#include <string.h> + #include <jpeglib.h> + #endif + } +--- a/celestia/src/celengine/texture.cpp ++++ b/celestia/src/celengine/texture.cpp +@@ -28,6 +28,7 @@ + #include <cstdlib> + #include <cstdio> + #include <cassert> ++#include <string.h> + + #ifndef _WIN32 + #ifndef TARGET_OS_MAC |