Allow RTC support to be excluded at compile time.

Add a new option to configure script, allowing
to disable (and exclude) RTC module. It saves same memory.
This commit is contained in:
Vladimir Michl
2007-06-26 22:08:49 +01:00
committed by Richard P. Curnow
parent 8a94298b7e
commit 93f6664378
2 changed files with 12 additions and 3 deletions

4
rtc.c
View File

@@ -33,7 +33,7 @@
#include "logging.h"
#include "conf.h"
#if defined LINUX
#if defined LINUX && defined FEAT_RTC
#include "rtc_linux.h"
#endif /* defined LINUX */
@@ -53,7 +53,7 @@ static struct {
void (*cycle_logfile)(void);
} driver =
{
#if defined LINUX
#if defined LINUX && defined FEAT_RTC
RTC_Linux_Initialise,
RTC_Linux_Finalise,
RTC_Linux_TimePreInit,