openbsd-ports/graphics/gphoto2/patches/patch-gphoto2_actions_c
2017-10-07 14:52:47 +00:00

25 lines
691 B
Plaintext

$OpenBSD: patch-gphoto2_actions_c,v 1.5 2017/10/07 14:52:47 ajacoutot Exp $
Index: gphoto2/actions.c
--- gphoto2/actions.c.orig
+++ gphoto2/actions.c
@@ -19,7 +19,8 @@
* Boston, MA 02110-1301 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 */
@@ -36,6 +37,9 @@
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
+
+/* basename(3) */
+#include <libgen.h>
#include "actions.h"
#include "i18n.h"