File fortune-ia64.patch of Package fortune

--- fortune/fortune.c
+++ fortune/fortune.c
@@ -179,6 +179,9 @@
 
 char	*regcmp(), *regex();
 #else
+#define _REGEX_RE_COMP
+#include <regex.h>
+
 # define	RE_COMP(p)	(p = re_comp(p))
 # define	BAD_COMP(f)	((f) != NULL)
 # define	RE_EXEC(p)	re_exec(p)
--- strfile/strfile.c
+++ strfile/strfile.c
@@ -54,6 +54,8 @@
 # include	<sys/param.h>
 # include	<stdio.h>
 # include	<ctype.h>
+# include	<stdlib.h>
+# include	<string.h>
 # include	"strfile.h"
 
 # ifndef MAXPATHLEN
@@ -133,9 +135,6 @@
 
 STR	*Firstch;			/* first chars of each string */
 
-char	*fgets(), *strcpy(), *strcat();
-
-void	*malloc(), *realloc();
 
 /*
  * main:
--- unstr/unstr.c
+++ unstr/unstr.c
@@ -63,6 +63,7 @@
 # include	<sys/param.h>
 # include	"strfile.h"
 # include	<stdio.h>
+# include	<stdlib.h>
 # include	<ctype.h>
 
 # ifndef MAXPATHLEN