Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / graphics / lprof / patches / patch-ag
blobed5746532de2d7963032aa2179259ce114daf250
1 $NetBSD: patch-ag,v 1.1 2006/05/12 10:53:14 joerg Exp $
3 --- src/qtMeasurementTool/qtiffio.cpp.orig      2005-08-20 01:11:52.000000000 +0000
4 +++ src/qtMeasurementTool/qtiffio.cpp
5 @@ -17,6 +17,7 @@
6  // 
7  
8  #include <stdio.h>
9 +#include <sys/types.h>
10  #include <sys/mman.h>
12  #include <tiffio.h>
13 @@ -69,19 +70,6 @@ static toff_t tiff_size(thandle_t handle
14    return iod->size();
15  }
17 -//! QIODevice / libtiff mmap wrapper
18 -/*! \warning always returns MAP_FAILED.
19 -*/
20 -static int tiff_mmap(thandle_t handle,tdata_t* data,toff_t* size) {
21 -  return (int) MAP_FAILED;
24 -//! QIODevice / libtiff write wrapper
25 -/*! \warning because you can't mmap, this is a dummy.
26 -*/
27 -static void tiff_unmap(thandle_t handle, tdata_t data, toff_t size) {
30  //! QImageIO read handler for TIFF files.
31  //
32  static void read_tiff_image(QImageIO *iio) {
33 @@ -103,8 +91,8 @@ static void read_tiff_image(QImageIO *ii
34                             tiff_seek,
35                             tiff_close,
36                             tiff_size,
37 -                           tiff_mmap,
38 -                           tiff_unmap );
39 +                           NULL,
40 +                           NULL );
41    
42    if(tif) {
43      unsigned width, height,size;