Fix a bulk load of implicit declaration on string functions.

This commit is contained in:
ajacoutot 2015-05-02 12:51:28 +00:00
parent 3fd9af59e4
commit 472a0fb8b2
2 changed files with 21 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.40 2015/04/21 18:45:27 sthen Exp $
# $OpenBSD: Makefile,v 1.41 2015/05/02 12:51:28 ajacoutot Exp $
COMMENT= scanner frontend for SANE
DISTNAME= xsane-0.999
REVISION= 1
REVISION= 2
CATEGORIES= graphics

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-lib_getopt_c,v 1.1 2015/05/02 12:51:28 ajacoutot Exp $
warning: implicit declaration of function 'getpid'
warning: implicit declaration of function 'strlen'
warning: implicit declaration of function 'strcmp'
warning: implicit declaration of function 'strncmp'
--- lib/getopt.c.orig Wed Mar 3 00:14:45 1999
+++ lib/getopt.c Sat May 2 14:49:21 2015
@@ -30,6 +30,9 @@
#include <config.h>
#endif
+#include <string.h>
+#include <unistd.h>
+
#if !defined (__STDC__) || !__STDC__
/* This is a separate conditional since some stdc systems
reject `defined (const)'. */