aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2008-12-10 20:03:00 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2008-12-10 20:03:00 +0300
commit93e2e9d2faf9495283b2709f8749d81542d21ed1 (patch)
tree72817ab774cd081b2687c914f08b2bcd96432175 /src/util.h
parentc9df6177c0b5f8fb5bd2c6c4947c52e184b0b556 (diff)
downloadrspamd-93e2e9d2faf9495283b2709f8749d81542d21ed1.tar.gz
rspamd-93e2e9d2faf9495283b2709f8749d81542d21ed1.zip
* Add logic for filtering messages with tokenizer/classifier pair
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 9c05a2a27..5d4590c4c 100644
--- a/src/util.h
+++ b/src/util.h
@@ -42,7 +42,13 @@ int setproctitle(const char *fmt, ...);
#ifndef HAVE_PIDFILE
struct pidfh {
int pf_fd;
+#ifdef HAVE_PATH_MAX
+ char pf_path[PATH_MAX + 1];
+#elif defined(HAVE_MAXPATHLEN)
char pf_path[MAXPATHLEN + 1];
+#else
+ char pf_path[1024 + 1];
+#endif
__dev_t pf_dev;
ino_t pf_ino;
};