summaryrefslogtreecommitdiff
path: root/spamprobe/spamprobe-1.4d-giflib5.patch
blob: 3de908348ae388f1cdc1993cb5bc48aca5638f8f (plain)
    1 diff -u -r spamprobe-1.4d.orig/src/parser/GifParser.cc spamprobe-1.4d/src/parser/GifParser.cc
    2 --- spamprobe-1.4d.orig/src/parser/GifParser.cc	2013-08-19 09:32:03.637652517 +0900
    3 +++ spamprobe-1.4d/src/parser/GifParser.cc	2013-08-19 09:33:56.728655212 +0900
    4 @@ -99,7 +99,11 @@
    5  void GifParser::openImage()
    6  {
    7    m_nextByteIndex = 0;
    8 +#if GIFLIB_MAJOR >= 5
    9 +  m_gif = DGifOpen(this, readFromBuffer, NULL);
   10 +#else
   11    m_gif = DGifOpen(this, readFromBuffer);
   12 +#endif
   13    if (!m_gif) {
   14      throw runtime_error("open gif failed");
   15    }
   16 diff -u -r spamprobe-1.4d.orig/src/parser/GifParser.h spamprobe-1.4d/src/parser/GifParser.h
   17 --- spamprobe-1.4d.orig/src/parser/GifParser.h	2013-08-19 09:32:03.638652517 +0900
   18 +++ spamprobe-1.4d/src/parser/GifParser.h	2013-08-19 09:45:07.019487685 +0900
   19 @@ -33,6 +33,7 @@
   20  #ifndef _GifParser_h
   21  #define _GifParser_h
   22  
   23 +#include <stddef.h>
   24  extern "C" {
   25  #include <gif_lib.h>
   26  }

Generated by cgit