summaryrefslogtreecommitdiff
path: root/examples/IPC_SAP/SPIPE_SAP
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-04 14:19:44 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-04 14:19:44 +0000
commitd6dfe8088bcd5fa83da83c0791a382e02e852241 (patch)
treef94709c7221421abd6017437c4e80bc479517988 /examples/IPC_SAP/SPIPE_SAP
parentc674b1f0db9532877dfc7f2c59059d496917e758 (diff)
downloadATCD-d6dfe8088bcd5fa83da83c0791a382e02e852241.tar.gz
moved #include of shared.h inside ACE_HAS_STREAM_PIPES protection to avoid compilation warnings on unsupported platforms.
Diffstat (limited to 'examples/IPC_SAP/SPIPE_SAP')
-rw-r--r--examples/IPC_SAP/SPIPE_SAP/client.cpp3
-rw-r--r--examples/IPC_SAP/SPIPE_SAP/consumer_msg.cpp3
-rw-r--r--examples/IPC_SAP/SPIPE_SAP/consumer_read.cpp3
-rw-r--r--examples/IPC_SAP/SPIPE_SAP/producer_msg.cpp3
-rw-r--r--examples/IPC_SAP/SPIPE_SAP/producer_read.cpp3
-rw-r--r--examples/IPC_SAP/SPIPE_SAP/server.cpp3
6 files changed, 12 insertions, 6 deletions
diff --git a/examples/IPC_SAP/SPIPE_SAP/client.cpp b/examples/IPC_SAP/SPIPE_SAP/client.cpp
index 5ae194c9020..ff18c2e95a6 100644
--- a/examples/IPC_SAP/SPIPE_SAP/client.cpp
+++ b/examples/IPC_SAP/SPIPE_SAP/client.cpp
@@ -3,10 +3,11 @@
#include "ace/SPIPE_Addr.h"
#include "ace/SPIPE_Connector.h"
-#include "shared.h"
#if defined (ACE_HAS_STREAM_PIPES)
+#include "shared.h"
+
int
main (int argc, char *argv[])
{
diff --git a/examples/IPC_SAP/SPIPE_SAP/consumer_msg.cpp b/examples/IPC_SAP/SPIPE_SAP/consumer_msg.cpp
index e8c5daa04c8..b6f08843f97 100644
--- a/examples/IPC_SAP/SPIPE_SAP/consumer_msg.cpp
+++ b/examples/IPC_SAP/SPIPE_SAP/consumer_msg.cpp
@@ -2,10 +2,11 @@
#include "ace/SPIPE_Addr.h"
#include "ace/SPIPE_Acceptor.h"
-#include "shared.h"
#if defined (ACE_HAS_STREAM_PIPES)
+#include "shared.h"
+
int
main (int argc, char *argv[])
{
diff --git a/examples/IPC_SAP/SPIPE_SAP/consumer_read.cpp b/examples/IPC_SAP/SPIPE_SAP/consumer_read.cpp
index c9321e8411a..710372d42cb 100644
--- a/examples/IPC_SAP/SPIPE_SAP/consumer_read.cpp
+++ b/examples/IPC_SAP/SPIPE_SAP/consumer_read.cpp
@@ -2,10 +2,11 @@
#include "ace/SPIPE_Addr.h"
#include "ace/SPIPE_Acceptor.h"
-#include "shared.h"
#if defined (ACE_HAS_STREAM_PIPES)
+#include "shared.h"
+
int
main (int argc, char *argv[])
{
diff --git a/examples/IPC_SAP/SPIPE_SAP/producer_msg.cpp b/examples/IPC_SAP/SPIPE_SAP/producer_msg.cpp
index c3bea44b16c..bd0112dc2f1 100644
--- a/examples/IPC_SAP/SPIPE_SAP/producer_msg.cpp
+++ b/examples/IPC_SAP/SPIPE_SAP/producer_msg.cpp
@@ -3,10 +3,11 @@
#include "ace/SPIPE_Addr.h"
#include "ace/SPIPE_Connector.h"
-#include "shared.h"
#if defined (ACE_HAS_STREAM_PIPES)
+#include "shared.h"
+
const int DEFAULT_SIZE = 4 * 1024;
const int DEFAULT_COUNT = 100;
diff --git a/examples/IPC_SAP/SPIPE_SAP/producer_read.cpp b/examples/IPC_SAP/SPIPE_SAP/producer_read.cpp
index 8a3d2445554..65756632343 100644
--- a/examples/IPC_SAP/SPIPE_SAP/producer_read.cpp
+++ b/examples/IPC_SAP/SPIPE_SAP/producer_read.cpp
@@ -3,10 +3,11 @@
#include "ace/SPIPE_Addr.h"
#include "ace/SPIPE_Connector.h"
-#include "shared.h"
#if defined (ACE_HAS_STREAM_PIPES)
+#include "shared.h"
+
const int DEFAULT_SIZE = 8 * 1024;
const int DEFAULT_COUNT = 100;
diff --git a/examples/IPC_SAP/SPIPE_SAP/server.cpp b/examples/IPC_SAP/SPIPE_SAP/server.cpp
index e46cb71f86b..bacb3b46158 100644
--- a/examples/IPC_SAP/SPIPE_SAP/server.cpp
+++ b/examples/IPC_SAP/SPIPE_SAP/server.cpp
@@ -2,10 +2,11 @@
#include "ace/SPIPE_Addr.h"
#include "ace/SPIPE_Acceptor.h"
-#include "shared.h"
#if defined (ACE_HAS_STREAM_PIPES)
+#include "shared.h"
+
// Maximum per-process open I/O descriptors.
const int MAX_HANDLES = 200;
const int PERMS = 0666;