* New upstream version + replaces the expiration call mechanism and script with native implementation (closes: 794328) * Changed error log rotation schedule to daily execution (to expire some cruft from ancient bugs sooner or later) * removed urlencode-fixer.pl (should be obsolete now), expire-caller.pl (symlink to acngtool which emulates it)
// safe fallbacks, should be defined by build system
7
8
#ifndef ACVERSION
8
9
#define ACVERSION "0.custom"
9
10
#endif
11
#ifndef CFGDIR
12
#define CFGDIR "/usr/local/etc/apt-cacher-ng"
13
#endif
14
#ifndef LIBDIR
15
#define LIBDIR "/usr/local/lib/apt-cacher-ng"
16
#endif
10
17
11
18
#define __STDC_FORMAT_MACROS
12
19
#include <inttypes.h>
13
20
#include <climits>
14
15
#ifdef HAVE_MEMORY_SPTR
16
21
#include <memory>
17
#define SMARTPTR_SPACE std
18
#elif defined HAVE_TR1_MEMORY
19
#include <tr1/memory>
20
#define SMARTPTR_SPACE std::tr1
21
#elif defined HAVE_BOOST_SMARTPTR
22
#include <boost/smart_ptr.hpp>
23
#define SMARTPTR_SPACE boost
24
#else
25
#error Unable to find smart pointer implementation, install Boost or recent compiler with STL containing TR1 components. Set BOOSTDIR in Makefile if needed.
26
#endif
27
22
28
// make off_t be a 64 bit type
29
23
// added in Makefile... #define _FILE_OFFSET_BITS 64