diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-12-05 06:44:40 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-12-05 06:44:40 +0000 |
commit | 1749cefdad726f2a44510a6c46d904b6e837dcc9 (patch) | |
tree | 844e660413b38c13a8742e4e2684ebc4d26a3a3e /cpukit/posix/src/usleep.c | |
parent | 2008-12-05 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-1749cefdad726f2a44510a6c46d904b6e837dcc9.tar.bz2 |
Compile contents conditionally.
Diffstat (limited to 'cpukit/posix/src/usleep.c')
-rw-r--r-- | cpukit/posix/src/usleep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/posix/src/usleep.c b/cpukit/posix/src/usleep.c index 67abc438a6..e864f3566a 100644 --- a/cpukit/posix/src/usleep.c +++ b/cpukit/posix/src/usleep.c @@ -15,6 +15,8 @@ #include "config.h" #endif +#ifndef HAVE_USLEEP + #include <time.h> #include <unistd.h> @@ -39,3 +41,5 @@ int usleep( remaining += tm.tv_nsec / 1000; return remaining; /* seconds remaining */ } + +#endif |