From a54e55c432e009a77ee3814403b0d33c5e7e9992 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 7 Jun 2007 00:03:36 +0000 Subject: [PATCH] Don't build sleep() or usleep() if signals are disabled git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@267 42af7a65-404d-4744-a932-0658087f49c3 --- sched/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sched/Makefile b/sched/Makefile index 50992734a3..c007feaf42 100644 --- a/sched/Makefile +++ b/sched/Makefile @@ -57,7 +57,10 @@ SCHED_SRCS = sched_setparam.c sched_getparam.c \ sched_lock.c sched_unlock.c sched_lockcount.c WDOG_SRCS = wd_initialize.c wd_create.c wd_start.c wd_cancel.c wd_delete.c \ wd_gettime.c -TIME_SRCS = sched_processtimer.c sleep.c usleep.c +TIME_SRCS = sched_processtimer.c +ifneq ($(CONFIG_DISABLE_SIGNALS),y) +TIME_SRCS += sleep.c usleep.c +endif CLOCK_SRCS = clock_initialize.c mktime.c gmtime_r.c clock_settime.c clock_gettime.c \ clock_getres.c clock_time2ticks.c clock_abstime2ticks.c clock_ticks2time.c SIGNAL_SRCS = sig_initialize.c \