summaryrefslogtreecommitdiff
path: root/examples/IPC_SAP/FIFO_SAP/FIFO-Msg-server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/IPC_SAP/FIFO_SAP/FIFO-Msg-server.cpp')
-rw-r--r--examples/IPC_SAP/FIFO_SAP/FIFO-Msg-server.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/IPC_SAP/FIFO_SAP/FIFO-Msg-server.cpp b/examples/IPC_SAP/FIFO_SAP/FIFO-Msg-server.cpp
index 6b653ba24e5..fc96ec71dbb 100644
--- a/examples/IPC_SAP/FIFO_SAP/FIFO-Msg-server.cpp
+++ b/examples/IPC_SAP/FIFO_SAP/FIFO-Msg-server.cpp
@@ -3,6 +3,9 @@
#include "ace/FIFO_Recv_Msg.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/OS_NS_unistd.h"
+#include "ace/OS_NS_stdlib.h"
+#include "ace/OS_NS_stropts.h"
#include "ace/OS_main.h"
ACE_RCSID(FIFO_SAP, FIFO_Msg_server, "$Id$")
@@ -37,10 +40,10 @@ ACE_TMAIN (int, ACE_TCHAR *[])
return 0;
}
#else
-#include <stdio.h>
int ACE_TMAIN (int, ACE_TCHAR *[])
{
- ACE_OS::fprintf (stderr, "This feature is not supported\n");
+ ACE_ERROR ((LM_INFO,
+ ACE_TEXT ("This feature is not supported\n")));
return 0;
}
#endif /* ACE_HAS_STREAM_PIPES */