summaryrefslogtreecommitdiff
path: root/spamprobe/compile-fixes.patch
blob: 526e8e0b9df5539f3a76320c8db4b3d1195605ec (plain)
    1 diff -up spamprobe-1.4d/src/database/HashDataFile.h.compile-fixes spamprobe-1.4d/src/database/HashDataFile.h
    2 --- spamprobe-1.4d/src/database/HashDataFile.h.compile-fixes	2006-11-16 23:24:48.000000000 -0800
    3 +++ spamprobe-1.4d/src/database/HashDataFile.h	2012-08-13 01:12:35.000000000 -0700
    4 @@ -93,7 +93,7 @@ public:
    5  
    6    bool isReadOnly() const
    7    {
    8 -    m_isReadOnly;
    9 +    return m_isReadOnly;
   10    }
   11  
   12    int createMode() const
   13 diff -up spamprobe-1.4d/src/includes/MultiLineSubString.h.compile-fixes spamprobe-1.4d/src/includes/MultiLineSubString.h
   14 --- spamprobe-1.4d/src/includes/MultiLineSubString.h.compile-fixes	2006-11-16 23:24:48.000000000 -0800
   15 +++ spamprobe-1.4d/src/includes/MultiLineSubString.h	2012-08-13 01:12:35.000000000 -0700
   16 @@ -31,6 +31,7 @@
   17  #ifndef _MultiLineSubString_h
   18  #define _MultiLineSubString_h
   19  
   20 +#include <limits.h>
   21  #include "AbstractMultiLineString.h"
   22  
   23  class MultiLineSubString : public AbstractMultiLineString
   24 diff -up spamprobe-1.4d/src/includes/Ref.h.compile-fixes spamprobe-1.4d/src/includes/Ref.h
   25 --- spamprobe-1.4d/src/includes/Ref.h.compile-fixes	2006-11-16 23:24:48.000000000 -0800
   26 +++ spamprobe-1.4d/src/includes/Ref.h	2012-08-13 01:19:29.000000000 -0700
   27 @@ -189,7 +189,7 @@ public:
   28  
   29    CRef<T> &operator=(const CRef<T> &other)
   30    {
   31 -    assign(other);
   32 +    this->assign(other);
   33      return *this;
   34    }
   35  
   36 @@ -245,7 +245,7 @@ public:
   37  
   38    Ref<T> &operator=(const Ref<T> &other)
   39    {
   40 -    assign(other);
   41 +    this->assign(other);
   42      return *this;
   43    }
   44  
   45 diff -up spamprobe-1.4d/src/includes/util.h.compile-fixes spamprobe-1.4d/src/includes/util.h
   46 --- spamprobe-1.4d/src/includes/util.h.compile-fixes	2006-11-16 23:24:49.000000000 -0800
   47 +++ spamprobe-1.4d/src/includes/util.h	2012-08-13 01:12:35.000000000 -0700
   48 @@ -35,9 +35,10 @@
   49      #include <unistd.h>
   50  #endif
   51  
   52 +#include <stdlib.h>
   53 +#include <string.h>
   54  #include <cmath>
   55  #include <memory>
   56 -#include <string>
   57  #include <cctype>
   58  #include <cassert>
   59  #include <iostream>
   60 diff --git a/src/includes/LRUCache.h b/src/includes/LRUCache.h
   61 index cf7df30..5c84c5a 100644
   62 --- a/src/includes/LRUCache.h
   63 +++ b/src/includes/LRUCache.h
   64 @@ -60,7 +60,7 @@ public:
   65    {
   66    public:
   67      bool operator()(const NodeType *a,
   68 -                    const NodeType *b)
   69 +                    const NodeType *b) const
   70      {
   71        return a->key < b->key;
   72      }
   73 @@ -77,12 +77,12 @@ public:
   74      }
   75  
   76    public:
   77 -    bool operator==(const iterator &other)
   78 +    bool operator==(const iterator &other) const
   79      {
   80        return m_iterator == other.m_iterator;
   81      }
   82  
   83 -    bool operator!=(const iterator &other)
   84 +    bool operator!=(const iterator &other) const
   85      {
   86        return m_iterator != other.m_iterator;
   87      }

Generated by cgit