diff options
author | joerg <joerg> | 2006-02-20 17:56:36 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-02-20 17:56:36 +0000 |
commit | 0f837fdab88e74f88ea265393818985d6ff44c31 (patch) | |
tree | d61fa3971a13d2bcfd58388f184814eac5cf19b2 /graphics/tiff/patches | |
parent | 34a88aebb8dc72c1716ce3750ca22a2431bba9c5 (diff) | |
download | pkgsrc-0f837fdab88e74f88ea265393818985d6ff44c31.tar.gz |
Include stddef.h instead of defining NULL manually. This fixes
the inclusion of tiffio.h from C++ as seen in digikam.
Bump revision.
Diffstat (limited to 'graphics/tiff/patches')
-rw-r--r-- | graphics/tiff/patches/patch-ab | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/graphics/tiff/patches/patch-ab b/graphics/tiff/patches/patch-ab new file mode 100644 index 00000000000..3b9d080ad5b --- /dev/null +++ b/graphics/tiff/patches/patch-ab @@ -0,0 +1,26 @@ +$NetBSD: patch-ab,v 1.18 2006/02/20 17:56:36 joerg Exp $ + +--- libtiff/tiffio.h.orig 2006-02-20 17:43:42.000000000 +0000 ++++ libtiff/tiffio.h +@@ -30,6 +30,10 @@ + /* + * TIFF I/O Library Definitions. + */ ++ ++/* NULL */ ++#include <stddef.h> ++ + #include "tiff.h" + #include "tiffvers.h" + +@@ -97,10 +101,6 @@ typedef HFILE thandle_t; /* client data + typedef void* thandle_t; /* client data handle */ + #endif /* USE_WIN32_FILEIO */ + +-#ifndef NULL +-# define NULL (void *)0 +-#endif +- + /* + * Flags to pass to TIFFPrintDirectory to control + * printing of data structures that are potentially |