$NetBSD: patch-da,v 1.1 2006/11/03 07:45:19 rillig Exp $

--- converter/other/jpeg2000/pamtojpeg2k.c.orig	Tue Oct 31 09:41:12 2006
+++ converter/other/jpeg2000/pamtojpeg2k.c	Tue Oct 31 10:53:02 2006
@@ -9,7 +9,11 @@
 *****************************************************************************/
 
 #define _BSD_SOURCE 1    /* Make sure strdup() is in string.h */
+#ifdef __osf__
+#define _OSF_SOURCE
+#else
 #define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
+#endif /* __osf__ */
 #include <string.h>
 
 #include "pam.h"
