diff options
author | Linus Nordberg <linus@nordu.net> | 2011-03-21 14:58:52 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-03-21 14:58:52 +0100 |
commit | a0ce75b4bacbc864070d085f9bd09a31f96d010f (patch) | |
tree | e767eb78a4d06ab77332db666905bfa982601ad1 /lib/include/radsec/radsec.h | |
parent | a177887c740c173948fc7dbf96f726616885c407 (diff) |
Define RS_FREERADIUS_DICT and use it when missing "dictionary" in config.
Diffstat (limited to 'lib/include/radsec/radsec.h')
-rw-r--r-- | lib/include/radsec/radsec.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <unistd.h> #include <sys/time.h> +#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, |