summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/ChangeLog2
-rw-r--r--cpukit/posix/Makefile.am8
2 files changed, 8 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index b7b4922f4c..e0721fb965 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,7 @@
2007-04-13 Ralf Corsépius <ralf.corsepius@rtems.org>
+ * posix/Makefile.am: Unconditionally build src/sleep.c,
+ src/usleep.c.
* posix/src/clockgettime.c: #ifdef CLOCK_MONOTONIC the
CLOCK_MONOTONIC case.
* score/inline/rtems/score/tod.inl: Include <sys/time.h>.
diff --git a/cpukit/posix/Makefile.am b/cpukit/posix/Makefile.am
index 0bd20a840f..ea16baa77d 100644
--- a/cpukit/posix/Makefile.am
+++ b/cpukit/posix/Makefile.am
@@ -15,6 +15,10 @@ noinst_LIBRARIES = libposix.a
libposix_a_CPPFLAGS = $(AM_CPPFLAGS)
libposix_a_SOURCES =
+libposix_a_SOURCES += src/sleep.c
+libposix_a_SOURCES += src/usleep.c
+
+if HAS_PTHREADS
# include
include_HEADERS = include/sched.h include/aio.h include/mqueue.h \
@@ -153,7 +157,7 @@ libposix_a_SOURCES += src/pspin.c src/pspindestroy.c src/pspininit.c \
libposix_a_SOURCES += src/adjtime.c src/posixtimespecabsolutetimeout.c \
src/clockgetcpuclockid.c src/clockgetenableattr.c src/clockgetres.c \
src/clockgettime.c src/clocksetenableattr.c src/clocksettime.c \
- src/nanosleep.c src/sleep.c src/usleep.c
+ src/nanosleep.c
# the timer manager needs to be split further but only after its
# dependence on the Classic API Timer Manager is removed.
@@ -164,7 +168,7 @@ EXTRA_DIST += src/README.mqueue
libposix_a_SOURCES += src/adasupp.c src/sched.c \
src/sysconf.c src/types.c
-
+endif
endif
include $(srcdir)/preinstall.am