summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-12-05 06:44:40 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-12-05 06:44:40 +0000
commit1749cefdad726f2a44510a6c46d904b6e837dcc9 (patch)
tree844e660413b38c13a8742e4e2684ebc4d26a3a3e /cpukit/posix
parent2008-12-05 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-1749cefdad726f2a44510a6c46d904b6e837dcc9.tar.bz2
Compile contents conditionally.
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/src/execl.c4
-rw-r--r--cpukit/posix/src/execle.c4
-rw-r--r--cpukit/posix/src/execlp.c4
-rw-r--r--cpukit/posix/src/execv.c4
-rw-r--r--cpukit/posix/src/execve.c4
-rw-r--r--cpukit/posix/src/execvp.c4
-rw-r--r--cpukit/posix/src/sleep.c3
-rw-r--r--cpukit/posix/src/usleep.c4
8 files changed, 31 insertions, 0 deletions
diff --git a/cpukit/posix/src/execl.c b/cpukit/posix/src/execl.c
index 0ea72edbf3..9edaba341d 100644
--- a/cpukit/posix/src/execl.c
+++ b/cpukit/posix/src/execl.c
@@ -15,6 +15,8 @@
#include "config.h"
#endif
+#ifndef HAVE_EXECL
+
#include <errno.h>
#include <rtems/seterr.h>
@@ -26,3 +28,5 @@ int execl(
{
rtems_set_errno_and_return_minus_one( ENOSYS );
}
+
+#endif
diff --git a/cpukit/posix/src/execle.c b/cpukit/posix/src/execle.c
index 520fc589b1..947a4e104f 100644
--- a/cpukit/posix/src/execle.c
+++ b/cpukit/posix/src/execle.c
@@ -15,6 +15,8 @@
#include "config.h"
#endif
+#ifndef HAVE_EXECLE
+
#include <errno.h>
#include <rtems/seterr.h>
@@ -26,3 +28,5 @@ int execle(
{
rtems_set_errno_and_return_minus_one( ENOSYS );
}
+
+#endif
diff --git a/cpukit/posix/src/execlp.c b/cpukit/posix/src/execlp.c
index af584fc5ab..fabc6986bb 100644
--- a/cpukit/posix/src/execlp.c
+++ b/cpukit/posix/src/execlp.c
@@ -15,6 +15,8 @@
#include "config.h"
#endif
+#ifndef HAVE_EXECLP
+
#include <errno.h>
#include <rtems/seterr.h>
@@ -26,3 +28,5 @@ int execlp(
{
rtems_set_errno_and_return_minus_one( ENOSYS );
}
+
+#endif
diff --git a/cpukit/posix/src/execv.c b/cpukit/posix/src/execv.c
index e7c9a9ce85..46595232ad 100644
--- a/cpukit/posix/src/execv.c
+++ b/cpukit/posix/src/execv.c
@@ -15,6 +15,8 @@
#include "config.h"
#endif
+#ifndef HAVE_EXECV
+
#include <errno.h>
#include <rtems/seterr.h>
@@ -25,3 +27,5 @@ int execv(
{
rtems_set_errno_and_return_minus_one( ENOSYS );
}
+
+#endif
diff --git a/cpukit/posix/src/execve.c b/cpukit/posix/src/execve.c
index 5a00a26790..b89009866e 100644
--- a/cpukit/posix/src/execve.c
+++ b/cpukit/posix/src/execve.c
@@ -15,6 +15,8 @@
#include "config.h"
#endif
+#ifndef HAVE_EXECVE
+
#include <errno.h>
#include <rtems/seterr.h>
@@ -26,3 +28,5 @@ int execve(
{
rtems_set_errno_and_return_minus_one( ENOSYS );
}
+
+#endif
diff --git a/cpukit/posix/src/execvp.c b/cpukit/posix/src/execvp.c
index e68f44c1a9..720543fcdf 100644
--- a/cpukit/posix/src/execvp.c
+++ b/cpukit/posix/src/execvp.c
@@ -15,6 +15,8 @@
#include "config.h"
#endif
+#ifndef HAVE_EXECVP
+
#include <errno.h>
#include <rtems/seterr.h>
@@ -25,3 +27,5 @@ int execvp(
{
rtems_set_errno_and_return_minus_one( ENOSYS );
}
+
+#endif
diff --git a/cpukit/posix/src/sleep.c b/cpukit/posix/src/sleep.c
index 961aa4b352..98239dc292 100644
--- a/cpukit/posix/src/sleep.c
+++ b/cpukit/posix/src/sleep.c
@@ -15,6 +15,7 @@
#include "config.h"
#endif
+#ifndef HAVE_SLEEP
#include <time.h>
#include <unistd.h>
@@ -35,3 +36,5 @@ unsigned int sleep(
return tm.tv_sec; /* seconds remaining */
}
+
+#endif
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