2009-09-25 00:38:23 +02:00
|
|
|
#ifndef _WIN32
|
|
|
|
#define closesocket(s) close(s)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef O_BINARY
|
|
|
|
#define O_BINARY 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef FALSE
|
|
|
|
#define FALSE (0)
|
|
|
|
#endif
|
|
|
|
#ifndef TRUE
|
|
|
|
#define TRUE (1)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MIN
|
|
|
|
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
|
|
|
#endif
|
|
|
|
#ifndef MAX
|
|
|
|
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_IN_PORT_T
|
|
|
|
typedef unsigned short in_port_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_IN_ADDR_T
|
|
|
|
typedef unsigned int in_addr_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#define PATHSEP "\\"
|
|
|
|
#else
|
|
|
|
#define PATHSEP "/"
|
|
|
|
#endif
|
2009-10-20 19:44:45 +02:00
|
|
|
|
2009-10-21 09:48:50 +03:00
|
|
|
#define CONFDIR_CLAMD CONFDIR PATHSEP "clamd.conf"
|
|
|
|
#define CONFDIR_FRESHCLAM CONFDIR PATHSEP "freshclam.conf"
|
|
|
|
#define CONFDIR_MILTER CONFDIR PATHSEP "clamav-milter.conf"
|
2009-10-20 19:44:45 +02:00
|
|
|
|
2011-04-18 17:25:23 +02:00
|
|
|
#define cli_to_utf8_maybe_alloc(x) (x)
|
|
|
|
#define cli_strdup_to_utf8(x) strdup(x)
|
2010-04-23 21:39:01 +03:00
|
|
|
#ifndef WORDS_BIGENDIAN
|
|
|
|
#define WORDS_BIGENDIAN 0
|
|
|
|
#endif
|