mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-27 06:58:19 +00:00
Build conditionally.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user