$NetBSD: patch-dd,v 1.3 2012/01/19 20:17:47 is Exp $

--- converter/other/cameratopam/cameratopam.c.orig	2006-08-19 03:12:28.000000000 +0000
+++ converter/other/cameratopam/cameratopam.c
@@ -8,7 +8,11 @@
 
 
 #define _BSD_SOURCE 1   /* Make sure string.h contains strcasecmp() */
+#if defined(__osf__) || defined(__sgi)
+#define _OSF_SOURCE
+#else
 #define _XOPEN_SOURCE  /* Make sure unistd.h contains swab() */
+#endif /* defined(__osf__) || defined(__sgi) */
 
 #include <ctype.h>
 #include <unistd.h>
