#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,
dict = ctx->config->dictionary;
if (dict == NULL)
- return rs_err_ctx_push_fl (ctx, RSE_INVAL, __FILE__, __LINE__,
- "missing dictionary");
+ dict = RS_FREERADIUS_DICT;
dictlen = strlen (dict);
dir = rs_calloc (ctx, 1, dictlen + 1);