$NetBSD: patch-da,v 1.1.30.1 2010/02/25 08:43:28 spz Exp $

--- converter/other/jpeg2000/pamtojpeg2k.c.orig	2007-12-27 22:32:59.000000000 +0000
+++ converter/other/jpeg2000/pamtojpeg2k.c
@@ -10,7 +10,11 @@
 
 #define _BSD_SOURCE 1    /* Make sure strdup() is in string.h */
 /* Make sure strdup() is in string.h and int_fast32_t is in inttypes.h */
+#ifdef __osf__
+#define _OSF_SOURCE
+#else
 #define _XOPEN_SOURCE 600
+#endif /* __osf__ */
 #include <string.h>
 
 #include "pam.h"
