openbsd-ports/games/wordwarvi/patches/patch-wordwarvi_c
kili 0a3dd03365 Word War vi is your basic side-scrolling shoot 'em up '80s style arcade
game. You pilot your "vi"per craft through core memory, rescuing lost
.swp files, avoiding OS defenses, and wiping out those memory hogging
emacs processes. When all the lost .swp files are rescued, head for the
socket which will take you to the next node in the cluster.

From maintainer Pascal Stumpf.

ok landry@

Note: this is *not* the version sent to ports@, it's a shiny new
release of wordwarvi.
2011-06-13 20:33:19 +00:00

24 lines
755 B
Plaintext

$OpenBSD: patch-wordwarvi_c,v 1.1.1.1 2011/06/13 20:33:19 kili Exp $
--- wordwarvi.c.orig Tue May 24 23:48:26 2011
+++ wordwarvi.c Tue May 24 23:49:42 2011
@@ -18,9 +18,10 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <sys/param.h>
#include <stdio.h>
#include <stdlib.h>
-#if !defined(__APPLE__)
+#if !defined(__APPLE__) && !defined(BSD)
/* Apple gets what it needs for malloc from stdlib.h, */
/* or so the internets would have me believe. I don't */
/* have a mac to test this, so if this doesn't work, */
@@ -37,6 +38,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <netinet/in.h>
#include <arpa/inet.h> /* for htonl, etc. */
#include <gdk/gdkkeysyms.h>