summaryrefslogtreecommitdiff
path: root/graphics/netpbm/patches/patch-ah
blob: 7247749994c36f7b7610960bc96e0b5568874f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$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 <stdlib.h>
 #include <string.h>
@@ -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;