strptime is XPG4v2

This commit is contained in:
naddy 2012-05-20 22:06:35 +00:00
parent 932043f849
commit 8856725b20
2 changed files with 16 additions and 2 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.43 2012/05/08 12:48:58 landry Exp $
# $OpenBSD: Makefile,v 1.44 2012/05/20 22:06:35 naddy Exp $
COMMENT= GTK+2 program to synchronize an Apple iPod
DISTNAME= gtkpod-1.0.0
REVISION = 0
REVISION = 1
CATEGORIES= audio x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gtkpod/}

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_misc_conversion_c,v 1.1 2012/05/20 22:06:35 naddy Exp $
Needed for strptime(3).
--- src/misc_conversion.c.orig Sun May 20 16:01:19 2012
+++ src/misc_conversion.c Sun May 20 16:01:53 2012
@@ -32,6 +32,7 @@
#define __USE_XOPEN /* needed for strptime() with glibc2 */
#define _XOPEN_SOURCE /* needed for strptime() with glibc2 */
+#define _XOPEN_SOURCE_EXTENDED 1 /* strptime is XPG4v2 */
#include <gtk/gtk.h>
#include <math.h>