From a0ce75b4bacbc864070d085f9bd09a31f96d010f Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Mon, 21 Mar 2011 14:58:52 +0100 Subject: Define RS_FREERADIUS_DICT and use it when missing "dictionary" in config. --- lib/include/radsec/radsec.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/include') diff --git a/lib/include/radsec/radsec.h b/lib/include/radsec/radsec.h index a35077c..2744cd2 100644 --- a/lib/include/radsec/radsec.h +++ b/lib/include/radsec/radsec.h @@ -6,6 +6,12 @@ #include #include +#ifdef SYSCONFDIR +#define RS_FREERADIUS_DICT SYSCONFDIR "/raddb/dictionary" +#else /* !SYSCONFDIR */ +#define RS_FREERADIUS_DICT "/usr/local/raddb/dictionary" +#endif /* !SYSCONFDIR */ + enum rs_error_code { RSE_OK = 0, RSE_NOMEM = 1, -- cgit v1.1