summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_stdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/OS_NS_stdio.h')
-rw-r--r--ACE/ace/OS_NS_stdio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ACE/ace/OS_NS_stdio.h b/ACE/ace/OS_NS_stdio.h
index 8895c77b018..a7705077d04 100644
--- a/ACE/ace/OS_NS_stdio.h
+++ b/ACE/ace/OS_NS_stdio.h
@@ -26,6 +26,7 @@
#include "ace/os_include/os_stdio.h"
#include "ace/os_include/os_fcntl.h"
#include "ace/os_include/os_inttypes.h"
+#include "ace/os_include/os_errno.h"
#include /**/ "ace/ACE_export.h"
/* OPENVMS needs unistd for cuserid() */
@@ -126,6 +127,9 @@ inline ACE_HANDLE ace_fileno_helper (FILE *fp)
# if defined (fileno)
return (ACE_HANDLE)fileno (fp);
# undef fileno
+# elif defined (ACE_LACKS_FILENO)
+ ACE_UNUSED_ARG (fp);
+ ACE_NOTSUP_RETURN (ACE_INVALID_HANDLE);
# else
return (ACE_HANDLE)(intptr_t)ACE_STD_NAMESPACE::fileno (fp);
# endif /* defined (fileno) */