- fixes implicit declarations of strdup and strcasecmp

requested by and input from jasper@
ok espie@ (maintainer)
This commit is contained in:
ajacoutot 2008-12-16 08:48:08 +00:00
parent 7b0860de7b
commit 06903cbd53
2 changed files with 19 additions and 2 deletions

View File

@ -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 <espie@openbsd.org>
VERSION= 2.4.3
DISTNAME= gphoto2-${VERSION}
PKGNAME= gphoto-${VERSION}
PKGNAME= gphoto-${VERSION}p0
HOMEPAGE= http://gphoto.sourceforge.net/

View File

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