add missing includes for gcc 4.9
This commit is contained in:
parent
65f97bbf3c
commit
ca370ed173
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.45 2018/10/24 14:27:57 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.46 2018/11/12 16:08:02 naddy Exp $
|
||||
|
||||
COMMENT= free space simulator and planetarium
|
||||
|
||||
DISTNAME= celestia-1.6.1
|
||||
REVISION= 15
|
||||
REVISION= 16
|
||||
|
||||
CATEGORIES= astro x11
|
||||
|
||||
|
13
astro/celestia/patches/patch-src_celengine_frametree_h
Normal file
13
astro/celestia/patches/patch-src_celengine_frametree_h
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-src_celengine_frametree_h,v 1.1 2018/11/12 16:08:02 naddy Exp $
|
||||
|
||||
Index: src/celengine/frametree.h
|
||||
--- src/celengine/frametree.h.orig
|
||||
+++ src/celengine/frametree.h
|
||||
@@ -13,6 +13,7 @@
|
||||
#ifndef _CELENGINE_FRAMETREE_H_
|
||||
#define _CELENGINE_FRAMETREE_H_
|
||||
|
||||
+#include <cstddef>
|
||||
#include <vector>
|
||||
|
||||
class Star;
|
@ -1,11 +1,21 @@
|
||||
$OpenBSD: patch-src_celengine_image_cpp,v 1.3 2012/12/22 18:35:24 jasper Exp $
|
||||
$OpenBSD: patch-src_celengine_image_cpp,v 1.4 2018/11/12 16:08:02 naddy Exp $
|
||||
|
||||
mips platforms already have 'mips' defined, resulting in:
|
||||
error: expected ',' or '...' before numeric constant
|
||||
|
||||
--- src/celengine/image.cpp.orig Sat Dec 22 18:02:55 2012
|
||||
+++ src/celengine/image.cpp Sat Dec 22 18:03:05 2012
|
||||
@@ -143,10 +143,10 @@ static int calcMipLevelSize(int fmt, int w, int h, int
|
||||
Index: src/celengine/image.cpp
|
||||
--- src/celengine/image.cpp.orig
|
||||
+++ src/celengine/image.cpp
|
||||
@@ -46,6 +46,8 @@ extern "C" {
|
||||
#endif
|
||||
}
|
||||
|
||||
+#include <cstring>
|
||||
+
|
||||
#endif // JPEG_SUPPORT
|
||||
|
||||
#ifdef PNG_SUPPORT // PNG_SUPPORT
|
||||
@@ -143,10 +145,10 @@ static int calcMipLevelSize(int fmt, int w, int h, int
|
||||
}
|
||||
|
||||
|
||||
|
13
astro/celestia/patches/patch-src_celengine_texture_cpp
Normal file
13
astro/celestia/patches/patch-src_celengine_texture_cpp
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-src_celengine_texture_cpp,v 1.1 2018/11/12 16:08:02 naddy Exp $
|
||||
|
||||
Index: src/celengine/texture.cpp
|
||||
--- src/celengine/texture.cpp.orig
|
||||
+++ src/celengine/texture.cpp
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <cstdio>
|
||||
+#include <cstring>
|
||||
#include <cassert>
|
||||
|
||||
#ifndef _WIN32
|
Loading…
Reference in New Issue
Block a user