summaryrefslogtreecommitdiff
path: root/academic/celestia/celestia-1.6.1-libpng16.patch
blob: 78911cb557551790b157159f10c9ff5b50516f81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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