diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-03-10 07:12:50 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-03-10 07:12:50 +0000 |
commit | 0ba07a0642c05f14ec5b3237340e6fe8bd8bab1b (patch) | |
tree | 37ca1ca37d1b0027f24fdf261f66c718618c9be7 /cpukit | |
parent | 2009-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-0ba07a0642c05f14ec5b3237340e6fe8bd8bab1b.tar.bz2 |
Build conditionally.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/libcsupport/src/creat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/creat.c b/cpukit/libcsupport/src/creat.c index ed7a872d4a..46fd4b5b60 100644 --- a/cpukit/libcsupport/src/creat.c +++ b/cpukit/libcsupport/src/creat.c @@ -8,6 +8,7 @@ #include "config.h" #endif +#ifndef HAVE_CREAT /* This is needed by f2c and therefore the SPEC benchmarks. */ #include <fcntl.h> @@ -17,3 +18,4 @@ creat (const char *path, mode_t mode) { return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode); } +#endif |