- add a bunch of missing headers that fix a crash at startup on amd64.

* another example why checking build logs for implicit declarations
  makes sense

crash noticed by claudio@
This commit is contained in:
jasper 2009-01-07 17:51:16 +00:00
parent 22df7c0f3c
commit e5e123db33
5 changed files with 55 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.39 2008/11/23 20:28:32 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.40 2009/01/07 17:51:16 jasper Exp $
COMMENT= format files for printing on PostScript printers
DISTNAME= a2ps-4.14
PKGNAME= ${DISTNAME}p0
CATEGORIES= print
SHARED_LIBS= a2ps 2.0
MODGNU_SHARED_LIBS=a2ps ''

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-lib_obstack_c,v 1.1 2009/01/07 17:51:16 jasper Exp $
--- lib/obstack.c.orig Wed Jan 7 18:35:58 2009
+++ lib/obstack.c Wed Jan 7 18:36:48 2009
@@ -43,6 +43,9 @@
#endif
#endif
+#if HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
#ifndef ELIDE_CODE

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-lib_path-concat_c,v 1.1 2009/01/07 17:51:16 jasper Exp $
--- lib/path-concat.c.orig Wed Jan 7 18:27:53 2009
+++ lib/path-concat.c Wed Jan 7 18:28:12 2009
@@ -31,6 +31,8 @@
#endif
#include <sys/types.h>
+#include <stdlib.h>
+
/* char *malloc (); */
#ifndef DIRECTORY_SEPARATOR

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-lib_quotearg_c,v 1.1 2009/01/07 17:51:16 jasper Exp $
--- lib/quotearg.c.orig Wed Jan 7 18:33:26 2009
+++ lib/quotearg.c Wed Jan 7 18:34:52 2009
@@ -67,6 +67,10 @@
# define mbstate_t int
#endif
+#if HAVE_WCTYPE_H
+# include <wctype.h>
+#endif
+
#define INT_BITS (sizeof (int) * CHAR_BIT)
struct quoting_options

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-lib_title_c,v 1.1 2009/01/07 17:51:16 jasper Exp $
--- lib/title.c.orig Wed Jan 7 18:35:10 2009
+++ lib/title.c Wed Jan 7 18:35:34 2009
@@ -27,6 +27,10 @@
# include <config.h>
#endif
+#if HAVE_STRING_H
+# include <string.h>
+#endif
+
#include <stdio.h>
#if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC