ace: fix segfaults on base-clang archs by adding a missing header

Spotted by and OK solene@
This commit is contained in:
cwen 2019-10-02 21:11:08 +00:00
parent d4e39cc17f
commit 9ec9c4303c
2 changed files with 15 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.4 2019/07/12 20:46:14 sthen Exp $
# $OpenBSD: Makefile,v 1.5 2019/10/02 21:11:08 cwen Exp $
COMMENT = solitaire games
DISTNAME = ace-1.4
REVISION = 0
REVISION = 1
SHARED_LIBS += cards 0.0 # 1.0

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-lib_imagelib_c,v 1.1 2019/10/02 21:11:08 cwen Exp $
Fix segfault on clang archs
Index: lib/imagelib.c
--- lib/imagelib.c.orig
+++ lib/imagelib.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "imagelib.h"
#include "cards.h"