$OpenBSD: patch-gphoto2_actions_c,v 1.2 2013/01/19 11:22:05 ajacoutot Exp $
--- gphoto2/actions.c.orig	Tue Jul 10 08:38:19 2012
+++ gphoto2/actions.c	Sat Jan 12 10:06:15 2013
@@ -18,7 +18,8 @@
  * Boston, MA 02111-1307, USA.
  */
 
-#define _XOPEN_SOURCE	/* strptime proto, but this hides other prototypes */
+/* strptime is XPG4v2 */
+#define _XOPEN_SOURCE_EXTENDED 1	/* strptime proto, but this hides other prototypes */
 #define _GNU_SOURCE	/* get all the other prototypes */
 #define __EXTENSIONS__	/* for solaris to get back strdup and strcasecmp */
 
@@ -35,6 +36,9 @@
 
 #include <time.h>
 #include <sys/time.h>
+
+/* basename(3) */
+#include <libgen.h>
 
 #include <gphoto2/gphoto2-port-log.h>
 #include <gphoto2/gphoto2-setting.h>
