fix build for gcc4

This commit is contained in:
espie 2010-05-23 16:06:37 +00:00
parent 3398fe88f4
commit 0180178b3a
3 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-richmail_richlex_c,v 1.1 2010/05/23 16:06:37 espie Exp $
--- richmail/richlex.c.orig Sun May 23 18:04:45 2010
+++ richmail/richlex.c Sun May 23 18:04:59 2010
@@ -43,6 +43,7 @@
#include <stdio.h>
#include <ctype.h>
+#include <string.h>
#include "richlex.h"
#include "richset.h"

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-richmail_richtext_c,v 1.1 2010/05/23 16:06:37 espie Exp $
--- richmail/richtext.c.orig Sun May 23 18:01:25 2010
+++ richmail/richtext.c Sun May 23 18:04:30 2010
@@ -15,12 +15,13 @@ WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
#include <stdio.h>
#include <ctype.h>
+#include <stdlib.h>
#include <signal.h>
#include "richlex.h"
#include "richset.h"
#include <config.h>
+#include <string.h>
-extern char *getenv();
#ifdef AMIGA
extern char *strchr();
#endif
@@ -30,6 +31,7 @@ unsigned _stklen=16384; /* Increase stack size under M
#endif
int iso2022_fputc ();
+static int lc2strcmp(char *, char *);
/*
* ########################################################################

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-delay_c,v 1.1 2010/05/23 16:08:17 espie Exp $
--- delay.c.orig Sun May 23 18:07:16 2010
+++ delay.c Sun May 23 18:07:26 2010
@@ -21,6 +21,7 @@
#include <sys/time.h>
#include <unistd.h>
#include <string.h>
+#include <stdlib.h>
#include "parsetime.h"
#ifdef HAVE_CURSES_H