ports/astro/xphoon/patches/patch-xphoon_c

21 lines
620 B
Text

Don't use malloc.h header on OpenBSD.
--- xphoon.c.orig Tue Jun 13 17:50:16 2000
+++ xphoon.c Mon Nov 3 22:38:23 2014
@@ -20,7 +20,6 @@ static char rcsid[] =
#include "vroot.h"
#include <stdio.h>
#include <stdlib.h> /* added by David Frey */
-#include <malloc.h> /* added by David Frey */
#include <time.h> /* added by David Frey */
#include <math.h>
#include <limits.h> /* added by Lalo Martins */
@@ -65,7 +64,7 @@ main( argc, argv )
int blackflag, demoflag, southflag;
int printpid;
char* display_name;
- long clock;
+ time_t clock;
int pid, tty;
int size;
char* mooncopy;