summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-13 14:59:50 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-13 14:59:50 +0000
commitef625e19a632aa05df5599a18f8a29c32b748a7f (patch)
tree5875e7c42bfff00ae7fb05d4bf30bef81665673c
parent5aede849fd5cae4fe6b6efa6b3a23e0ef6227ea1 (diff)
downloadATCD-ef625e19a632aa05df5599a18f8a29c32b748a7f.tar.gz
wrapped some variables and functions with #ifndef ACE_LACKS_FORK, to
avoid warnings on g++/VxWorks.
-rw-r--r--tests/Pipe_Test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Pipe_Test.cpp b/tests/Pipe_Test.cpp
index 07971699d08..84bbefad8ce 100644
--- a/tests/Pipe_Test.cpp
+++ b/tests/Pipe_Test.cpp
@@ -28,6 +28,7 @@ USELIB("..\ace\aced.lib");
//---------------------------------------------------------------------------
#endif /* defined(__BORLANDC__) && __BORLANDC__ >= 0x0530 */
+#if !defined (ACE_LACKS_FORK)
static int close_pipe = 1;
static int child_process = 0;
static int iterations = ACE_MAX_ITERATIONS;
@@ -79,11 +80,15 @@ open (ACE_Pipe &pipe,
if (close_pipe)
pipe.close ();
}
+#endif /* ! ACE_LACKS_FORK */
int
main (int argc, char *argv[])
{
#if defined (ACE_LACKS_FORK)
+ ACE_UNUSED_ARG (argc);
+ ACE_UNUSED_ARG (argv);
+
ACE_START_TEST ("Pipe_Test");
ACE_ERROR ((LM_INFO, "fork is not supported on this platform\n"));
ACE_END_TEST;