pkgsrc/graphics/netpbm/patches/patch-ah
adam 37f11ea699 Changes 10.35.76:
* Pnmtopng:  -libversion doesn't report level of linked libz.
  It was a modularity violation and caused build failures on
  Mac OS X, because Pnmtopng per se doesn't know about libz --
  it's used by libpng.
* Build: don't fail due to SIGRTMIN, SIGRTMAX being undefined.

Changes 10.35.75:
* palmtopnm: fix for pixel size 16.
* pamscale: fix -reduce.  Introduced in 10.27.
* configure: default to 'none' for Svgalib if it doesn't appear to
  be installed (per 'ldconfig').  Ported from 10.38, released March 2007.

Changes 10.35.74:
* pbmtext: don't crash when font file contains a blank line.
  Fail cleanly.
* ppmtoilbm: fix arithmetic overflow with image dimension
  represented as 16 bit integer.
* pbmpage: fix garbage output.
* pnmhistmap: Fix crash with -width.  Always broken.
* Build: don't fail due to SIGPWR being undefined.
2010-07-13 06:08:23 +00:00

23 lines
577 B
Text

$NetBSD: patch-ah,v 1.11 2010/07/13 06:08:23 adam Exp $
--- converter/other/cameratopam/camera.c.orig 2006-08-19 03:12:28.000000000 +0000
+++ 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>
@@ -24,6 +25,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;