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 @@ -17,3 +18,4 @@ creat (const char *path, mode_t mode) { return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode); } +#endif