From 06903cbd53ca106c164cdcdc6e722c65797cd68b Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Tue, 16 Dec 2008 08:48:08 +0000 Subject: [PATCH] - fixes implicit declarations of strdup and strcasecmp requested by and input from jasper@ ok espie@ (maintainer) --- graphics/gphoto2/Makefile | 4 ++-- .../gphoto2/patches/patch-gphoto2_actions_c | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 graphics/gphoto2/patches/patch-gphoto2_actions_c diff --git a/graphics/gphoto2/Makefile b/graphics/gphoto2/Makefile index 5447bf5cb39..cdf566e414c 100644 --- a/graphics/gphoto2/Makefile +++ b/graphics/gphoto2/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.12 2008/12/08 14:21:07 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.13 2008/12/16 08:48:08 ajacoutot Exp $ COMMENT= digital camera command-line interface CATEGORIES= graphics @@ -7,7 +7,7 @@ MAINTAINER= Marc Espie VERSION= 2.4.3 DISTNAME= gphoto2-${VERSION} -PKGNAME= gphoto-${VERSION} +PKGNAME= gphoto-${VERSION}p0 HOMEPAGE= http://gphoto.sourceforge.net/ diff --git a/graphics/gphoto2/patches/patch-gphoto2_actions_c b/graphics/gphoto2/patches/patch-gphoto2_actions_c new file mode 100644 index 00000000000..8e7e3a2dd4e --- /dev/null +++ b/graphics/gphoto2/patches/patch-gphoto2_actions_c @@ -0,0 +1,17 @@ +Fixes: +implicit declaration of function `strdup' +implicit declaration of function `strcasecmp' + +$OpenBSD: patch-gphoto2_actions_c,v 1.1 2008/12/16 08:48:08 ajacoutot Exp $ +--- gphoto2/actions.c.orig Tue Dec 16 09:01:12 2008 ++++ gphoto2/actions.c Tue Dec 16 09:01:55 2008 +@@ -18,7 +18,9 @@ + * Boston, MA 02111-1307, USA. + */ + ++#ifndef __OpenBSD__ + #define _XOPEN_SOURCE /* strptime proto, but this hides other prototypes */ ++#endif + #define _GNU_SOURCE /* get all the other prototypes */ + #define __EXTENSIONS__ /* for solaris to get back strdup and strcasecmp */ +