~ubuntu-branches/ubuntu/raring/dansguardian/raring

« back to all changes in this revision

Viewing changes to src/platform.h.in

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt, Thomas Viehmann
  • Date: 2008-10-13 09:29:35 UTC
  • mfrom: (1.1.7 upstream) (7.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081013092935-g8uz3kgfjs37ikgv
Tags: 2.9.9.7-2
[ Thomas Viehmann ]
OptionContainer.cpp: If you need to iterate through all lines in the
config file to find a field, at least don't abuse the configfile deque
by accessing it as if it was an array with signed index.
Works way better on arm, too, i.e. closes: #493047.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __H_PLATFORM
2
 
#define __H_PLATFORM 1
3
 
 
4
 
#ifdef HAVE_CONFIG_H
5
 
        #include "dgconfig.h"
6
 
#endif
7
 
 
8
 
#define __CONFFILE "@DGCONFFILE@"
9
 
#define __PIDDIR "@DGPIDDIR@/"
10
 
#define __LOGLOCATION "@DGLOGLOCATION@/"
11
 
#define __PROXYUSER "@DGPROXYUSER@"
12
 
#define __PROXYGROUP "@DGPROXYGROUP@"
13
 
#define __CONFDIR "@DGCONFDIR@"
14
 
 
15
 
#if defined(__GNUG__) && __GNUG__ >= 3
16
 
        #define __GCCVER3 1
17
 
#endif
18
 
 
19
 
#ifdef HAVE_SYS_WAIT_H
20
 
        #include <sys/wait.h>
21
 
#else
22
 
        #ifdef HAVE_WAIT_H
23
 
                #include <wait.h>
24
 
        #else
25
 
                #error "You have no sys/wait.h and no wait.h"
26
 
        #endif
27
 
#endif
28
 
 
29
 
#ifdef HAVE_SYS_SELECT_H
30
 
        #include <sys/select.h>
31
 
#else
32
 
        #error "You have no sys/select.h"
33
 
#endif
34
 
 
35
 
#ifdef HAVE_DARWIN
36
 
        #ifndef _BSD_SOCKLEN_T_
37
 
                #define _BSD_SOCKLEN_T_ size_t
38
 
        #endif
39
 
        #define __DARWIN 1
40
 
#endif
41
 
 
42
 
#ifdef HAVE_BSD
43
 
        #define __BSD 1
44
 
#endif
45
 
 
46
 
#ifdef HAVE_DGDEBUG
47
 
        #define DGDEBUG 1
48
 
#endif
49
 
 
50
 
#ifdef ENABLE_FANCYDM
51
 
        #define __FANCYDM
52
 
#endif
53
 
 
54
 
#ifdef ENABLE_TRICKLEDM
55
 
        #define __TRICKLEDM
56
 
#endif
57
 
 
58
 
#ifdef HAVE_PCRE
59
 
        #define __PCRE
60
 
#endif
61
 
 
62
 
#ifdef HAVE_KAVCLIENT
63
 
        #define __KAVAV
64
 
#endif
65
 
 
66
 
#ifdef HAVE_CLAMAV
67
 
        #define __CLAMAV
68
 
#endif
69
 
 
70
 
#ifdef HAVE_CLAMAV_SHM
71
 
        #define __CLAMAV_SHM
72
 
#endif
73
 
 
74
 
#ifdef ENABLE_CLAMD
75
 
        #define __CLAMD
76
 
#endif
77
 
 
78
 
#ifdef ENABLE_ICAP
79
 
        #define __ICAP
80
 
#endif
81
 
 
82
 
#ifdef ENABLE_KAVD
83
 
        #define __KAVD
84
 
#endif
85
 
 
86
 
#ifdef ENABLE_NTLM
87
 
        #define __NTLM
88
 
#endif
89
 
 
90
 
#ifdef ENABLE_COMMANDLINE
91
 
        #define __COMMANDLINE
92
 
#endif
93
 
 
94
 
#ifdef ENABLE_EMAIL
95
 
        #define __EMAIL
96
 
#endif
97
 
 
98
 
#ifdef ENABLE_SEGV_BACKTRACE
99
 
        #define __SEGV_BACKTRACE
100
 
#endif
101
 
 
102
 
#ifdef OFFT_COLLISION
103
 
        #define __OFFT_COLLISION
104
 
#endif
105
 
 
106
 
#endif //ifndef __H_PLATFORM