Fix implicit declaration of 'strlen'.

This commit is contained in:
ajacoutot 2015-05-02 09:39:05 +00:00
parent 046cb5a9b7
commit 04084c624e
2 changed files with 17 additions and 2 deletions

View File

@ -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/

View File

@ -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 <config.h>
#endif
+#include <string.h>
+
#if !defined (__STDC__) || !__STDC__
/* This is a separate conditional since some stdc systems
reject `defined (const)'. */