crack-attack: Add missing header for ports-gcc

OK jca@
This commit is contained in:
cwen 2019-03-01 20:01:27 +00:00
parent 1fdd118784
commit 26d3a97993
2 changed files with 16 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.24 2018/10/24 14:28:02 sthen Exp $
# $OpenBSD: Makefile,v 1.25 2019/03/01 20:01:27 cwen Exp $
COMMENT= OpenGL game based on SNES classic Tetris Attack
DISTNAME= crack-attack-1.1.14
REVISION= 14
REVISION= 15
CATEGORIES= games
MAINTAINER= Mattieu Baptiste <mattieu.b@free.fr>

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_TextureLoader_h,v 1.1 2019/03/01 20:01:27 cwen Exp $
Fix for ports-gcc:
error: 'strncpy' was not declared in this scope
Index: src/TextureLoader.h
--- src/TextureLoader.h.orig
+++ src/TextureLoader.h
@@ -28,6 +28,7 @@
#define TEXTURELOADER_H
#include <GL/glut.h>
+#include <string.h>
#include "glext.h"
#include "sstream.h"