Add missing includes to fix build on non-clang.

From Charlene Wendling, thanks!
This commit is contained in:
landry 2019-01-01 17:59:05 +00:00
parent 7e39230ee1
commit 590f27baf2
3 changed files with 32 additions and 2 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.20 2018/10/24 14:28:03 sthen Exp $
# $OpenBSD: Makefile,v 1.21 2019/01/01 17:59:05 landry Exp $
COMMENT= puzzle game resembling the arcade game Qix
DISTNAME= late-0.1.0
REVISION= 4
REVISION= 5
EXTRACT_SUFX= .tar.bz2
CATEGORIES= games x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=late/}

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_ball_h,v 1.1 2019/01/01 17:59:05 landry Exp $
ball.h:113:19: error: 'NULL' was not declared in this scope
Index: src/ball.h
--- src/ball.h.orig
+++ src/ball.h
@@ -25,6 +25,7 @@
class ball;
#include "square.h"
+#include <cstddef>
class ball_base
{

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-src_init_cpp,v 1.1 2019/01/01 17:59:05 landry Exp $
init.cpp:139:34: error: 'strcmp' was not declared in this scope
init.cpp:196:12: error: 'exit' was not declared in this scope
Index: src/init.cpp
--- src/init.cpp.orig
+++ src/init.cpp
@@ -26,8 +26,9 @@
#include "scorescreen.h"
#include <fstream>
#include <iostream>
+#include <string.h>
+#include <stdlib.h>
using namespace std;
-
int cheat = 0;
int zappy;