Build conditionally.

This commit is contained in:
Ralf Corsepius
2009-03-10 07:12:50 +00:00
parent cdb6eae1e3
commit 0ba07a0642

View File

@@ -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