From 04084c624e50e20b4792b8a0ee568b4f3d3f20f8 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Sat, 2 May 2015 09:39:05 +0000 Subject: [PATCH] Fix implicit declaration of 'strlen'. --- print/enscript/Makefile | 4 ++-- print/enscript/patches/patch-compat_getopt_c | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 print/enscript/patches/patch-compat_getopt_c diff --git a/print/enscript/Makefile b/print/enscript/Makefile index cd0ea684b2d..2b7b77977bf 100644 --- a/print/enscript/Makefile +++ b/print/enscript/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.31 2013/11/02 09:02:56 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.32 2015/05/02 09:39:05 ajacoutot Exp $ COMMENT= convert ASCII files to PostScript DISTNAME= enscript-1.6.3 -REVISION= 3 +REVISION= 4 CATEGORIES= print HOMEPAGE= http://www.codento.com/people/mtr/genscript/ diff --git a/print/enscript/patches/patch-compat_getopt_c b/print/enscript/patches/patch-compat_getopt_c new file mode 100644 index 00000000000..5178572fd77 --- /dev/null +++ b/print/enscript/patches/patch-compat_getopt_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-compat_getopt_c,v 1.1 2015/05/02 09:39:05 ajacoutot Exp $ + +warning: incompatible implicit declaration of built-in function 'strlen' + +--- compat/getopt.c.orig Sat May 2 10:41:42 2015 ++++ compat/getopt.c Sat May 2 10:42:21 2015 +@@ -34,6 +34,8 @@ + #include + #endif + ++#include ++ + #if !defined (__STDC__) || !__STDC__ + /* This is a separate conditional since some stdc systems + reject `defined (const)'. */