summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2016-07-22 19:01:04 +0200
committerAlexander Barton <alex@barton.de>2016-07-22 19:01:04 +0200
commit722afc1b810cef74dbd2738d71866176fd974ec2 (patch)
treed100354d42f8e165d9b2dceecc0c1209ed9e26d7 /src
parent86a64ce6aa522e5cbdb3a90b878e09a3b61d07bf (diff)
downloadngircd-722afc1b810cef74dbd2738d71866176fd974ec2.tar.gz
ngircd-722afc1b810cef74dbd2738d71866176fd974ec2.zip
Make sure that SYSCONFDIR is always set
This is useful when ./configure hasn't been run but some source code
linters are run in an editor, for example.
Diffstat (limited to 'src')
-rw-r--r--src/portab/portab.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/portab/portab.h b/src/portab/portab.h
index 78b6f7e1..70d5ed3e 100644
--- a/src/portab/portab.h
+++ b/src/portab/portab.h
@@ -175,6 +175,10 @@ extern int vsnprintf PARAMS(( char *str, size_t count, const char *fmt, va_list
 # define PACKAGE_VERSION VERSION
 #endif
 
+#ifndef SYSCONFDIR
+# define SYSCONFDIR "/etc"
+#endif
+
 #endif
 
 /* -eof- */