This essential piece of software needs stdlib.h for malloc/free/exit.
Index: Makefile =================================================================== RCS file: /cvs/ports/games/xminesweep/Makefile,v retrieving revision 1.28 diff -u -p -r1.28 Makefile --- Makefile 8 Jun 2014 12:00:54 -0000 1.28 +++ Makefile 9 Oct 2017 19:18:51 -0000 @@ -4,7 +4,7 @@ COMMENT= Windows minesweeper DISTNAME= xminesweep3.0 PKGNAME= xminesweep-3.0 -REVISION = 4 +REVISION = 5 CATEGORIES= games MASTER_SITES= ftp://ftp.warwick.ac.uk/pub/x11/ Index: patches/patch-xminesweep_h =================================================================== RCS file: patches/patch-xminesweep_h diff -N patches/patch-xminesweep_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-xminesweep_h 9 Oct 2017 19:18:51 -0000 @@ -0,0 +1,13 @@ +$OpenBSD$ + +Index: xminesweep.h +--- xminesweep.h.orig ++++ xminesweep.h +@@ -25,6 +25,7 @@ + #include <X11/Xatom.h> + + #include <stdio.h> ++#include <stdlib.h> + + #ifndef SYSTEM_V + #include <strings.h>