summaryrefslogtreecommitdiffstats
path: root/c/src/exec/include/rtems/libio_.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/include/rtems/libio_.h')
-rw-r--r--c/src/exec/include/rtems/libio_.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/c/src/exec/include/rtems/libio_.h b/c/src/exec/include/rtems/libio_.h
index bb6f81f35a..33a9e7bda5 100644
--- a/c/src/exec/include/rtems/libio_.h
+++ b/c/src/exec/include/rtems/libio_.h
@@ -27,6 +27,7 @@ extern "C" {
#include <fcntl.h> /* O_RDONLY, et.al. */
#include <assert.h>
#include <stdarg.h>
+#include <errno.h>
#if ! defined(O_NDELAY)
# if defined(solaris2)
@@ -36,6 +37,10 @@ extern "C" {
# endif
#endif
+#if !defined(ENOTSUP)
+#define ENOTSUP EOPNOTSUPP
+#endif
+
#include <errno.h>
#include <string.h> /* strcmp */
#include <unistd.h>