$NetBSD: patch-ah,v 1.10 2006/02/04 12:23:55 markd Exp $ --- converter/other/cameratopam/camera.c.orig 2005-12-04 07:06:50.000000000 +1300 +++ converter/other/cameratopam/camera.c @@ -2,6 +2,7 @@ /* Make sure strcasecmp is in string.h */ #define _XOPEN_SOURCE /* Make sure putenv is in stdlib.h */ +#define __EXTENSIONS__ #include #include @@ -25,6 +26,10 @@ #include "camera.h" +#ifdef __sun +#define setenv(x, y, z) putenv(x"="y) +#endif + #if HAVE_INT64 typedef int64_t INT64; static bool const have64BitArithmetic = true;