From 87a8af0ad71a11c248ba94c9ba20668dcb0fe831 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 2 Apr 2024 16:41:26 +0100 Subject: Use the paths from the build system instead of hardcoding them. --- include/sysconf.h.cmake | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include') diff --git a/include/sysconf.h.cmake b/include/sysconf.h.cmake index 927c75910..5605976f9 100644 --- a/include/sysconf.h.cmake +++ b/include/sysconf.h.cmake @@ -20,6 +20,21 @@ // Whether Anope was built in debug mode. #cmakedefine01 DEBUG_BUILD +// The default config directory. +#define DEFAULT_CONF_DIR "@CONF_DIR@" + +// The default data directory. +#define DEFAULT_DATA_DIR "@DB_DIR@" + +// The default locale directory. +#define DEFAULT_LOCALE_DIR "@LOCALE_DIR@" + +// The default log directory. +#define DEFAULT_LOG_DIR "@LOGS_DIR@" + +// The default module directory. +#define DEFAULT_MODULE_DIR "@LIB_DIR@" + // Whether the clock_gettime() function is available. #cmakedefine01 HAVE_CLOCK_GETTIME -- cgit