Fix implicit declaration of 'strlen'.
This commit is contained in:
parent
046cb5a9b7
commit
04084c624e
@ -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/
|
||||
|
15
print/enscript/patches/patch-compat_getopt_c
Normal file
15
print/enscript/patches/patch-compat_getopt_c
Normal 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)'. */
|
Loading…
Reference in New Issue
Block a user