Fix segfault on startup.

This commit is contained in:
pascal 2017-10-20 08:47:01 +00:00
parent 6dcf04b0a5
commit 8fff67055b
2 changed files with 14 additions and 1 deletions

View File

@ -4,7 +4,7 @@ COMMENT = interactive fractal zoomer and morpher
VERSION = 3.6
DISTNAME = xaos-${VERSION}
REVISION = 0
REVISION = 1
CATEGORIES = graphics

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_util_timers_c,v 1.1 2017/10/20 08:47:01 pascal Exp $
Index: src/util/timers.c
--- src/util/timers.c.orig
+++ src/util/timers.c
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <libc.h>
#else
+#include <stdlib.h>
#include <config.h>
#ifdef HAVE_GETTIMEOFDAY
#ifdef HAVE_UNISTD_H