diff options
author | Roy Marples <roy@marples.name> | 2008-03-28 10:46:12 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-28 10:46:12 +0000 |
commit | ee4e861796ad9b19acb45c576ed181ce2fdfebf5 (patch) | |
tree | 425c9a68f127bce193717055d99be03a1380516c /src/rc | |
parent | 11e33e81c855395cbd931e99f7452ed6b3fef357 (diff) |
Put some dir locations in rc.h so that 3rd party apps can become awware of them.
Diffstat (limited to 'src/rc')
-rw-r--r-- | src/rc/Makefile | 2 | ||||
-rw-r--r-- | src/rc/rc-misc.c | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/rc/Makefile b/src/rc/Makefile index f60fc313..2edc51eb 100644 --- a/src/rc/Makefile +++ b/src/rc/Makefile @@ -39,8 +39,6 @@ include ${MK}/cc.mk include ${MK}/debug.mk CFLAGS+= -I../includes -I../librc -I../libeinfo -CFLAGS+= -DLIB=\"${LIBNAME}\" -CFLAGS+= -DSYSCONFDIR=\"${SYSCONFDIR}\" include ${MK}/${MKTERMCAP}.mk LDADD+= ${LIBDL} ${LIBKVM} diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c index afe7893c..6e94ad69 100644 --- a/src/rc/rc-misc.c +++ b/src/rc/rc-misc.c @@ -49,11 +49,11 @@ #include "rc.h" #include "rc-misc.h" -#define PROFILE_ENV SYSCONFDIR "/profile.env" +#define PROFILE_ENV RC_SYSCONFDIR "/profile.env" #define SYS_WHITELIST RC_LIBDIR "/conf.d/env_whitelist" -#define USR_WHITELIST SYSCONFDIR "/conf.d/env_whitelist" -#define RC_CONF SYSCONFDIR "/rc.conf" -#define RC_CONF_OLD SYSCONFDIR "/conf.d/rc" +#define USR_WHITELIST RC_SYSCONFDIR "/conf.d/env_whitelist" +#define RC_CONF RC_SYSCONFDIR "/rc.conf" +#define RC_CONF_OLD RC_SYSCONFDIR "/conf.d/rc" #define PATH_PREFIX RC_LIBDIR "/bin:/bin:/sbin:/usr/bin:/usr/sbin" |