$NetBSD: patch-da,v 1.3 2010/03/04 11:01:01 tnn Exp $ --- converter/other/jpeg2000/jpeg2ktopam.c.orig 2007-12-27 22:32:59.000000000 +0000 +++ converter/other/jpeg2000/jpeg2ktopam.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 */ -#define _XOPEN_SOURCE 600 +#ifdef __osf__ +#define _OSF_SOURCE +#else +#define _XOPEN_SOURCE 500 +#endif /* __osf__ */ #include #include "pam.h"