openbsd-ports/misc/plan/patches/patch-ae
1998-05-20 07:46:06 +00:00

26 lines
635 B
Plaintext

--- src/holiday.c.orig Thu Apr 3 21:51:40 1997
+++ src/holiday.c Thu Jun 19 14:13:49 1997
@@ -17,9 +17,13 @@
#include <stdio.h>
#include <unistd.h>
#include <time.h>
+#ifdef STDLIBMALLOC
+#include <stdlib.h>
+#else
#ifndef NEWSOS4
#include <malloc.h>
#endif
+#endif
#ifdef CPP_PATH
#include <sys/types.h>
#include <sys/stat.h>
@@ -43,7 +47,7 @@
static int calc_easter();
-#if defined(bsdi) || defined(linux) || defined(__NetBSD__)
+#if defined(bsdi) || defined(linux) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
int yylineno;
#else
extern int yylineno; /* current line # being parsed */