summaryrefslogtreecommitdiff
path: root/src/basic/def.h
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-04-06 14:55:07 +0200
committerSven Eden <yamakuzure@gmx.net>2017-04-26 12:59:13 +0200
commiteaca07ccfdf5d7dabc50afc7e539c2413dd69d3e (patch)
treef2876260f754b2c3f86814980568e6142cffafcd /src/basic/def.h
parentb96ed50e3493103d075ff2ce4c3fbad8f26b2e22 (diff)
Prep v228: Add remaining updates from upstream (2/3)
Apply remaining fixes and the performed move of utility functions into their own foo-util.[hc] files on libbasic.
Diffstat (limited to 'src/basic/def.h')
-rw-r--r--src/basic/def.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/basic/def.h b/src/basic/def.h
index 561dab66e..b6541420a 100644
--- a/src/basic/def.h
+++ b/src/basic/def.h
@@ -80,3 +80,20 @@
#define NOTIFY_FD_MAX 768
#define NOTIFY_BUFFER_MAX PIPE_BUF
+
+#ifdef HAVE_SPLIT_USR
+#define _CONF_PATHS_SPLIT_USR(n) "/lib/" n "\0"
+#else
+#define _CONF_PATHS_SPLIT_USR(n)
+#endif
+
+/* Return a nulstr for a standard cascade of configuration paths,
+ * suitable to pass to conf_files_list_nulstr() or config_parse_many()
+ * to implement drop-in directories for extending configuration
+ * files. */
+#define CONF_PATHS_NULSTR(n) \
+ "/etc/" n "\0" \
+ "/run/" n "\0" \
+ "/usr/local/lib/" n "\0" \
+ "/usr/lib/" n "\0" \
+ _CONF_PATHS_SPLIT_USR(n)