diff options
Diffstat (limited to 'examples/System_V_IPC/SV_Shared_Memory/SV_Shared_Memory_Test.cpp')
-rw-r--r-- | examples/System_V_IPC/SV_Shared_Memory/SV_Shared_Memory_Test.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/examples/System_V_IPC/SV_Shared_Memory/SV_Shared_Memory_Test.cpp b/examples/System_V_IPC/SV_Shared_Memory/SV_Shared_Memory_Test.cpp index e0aae71f3fc..0a7d718009d 100644 --- a/examples/System_V_IPC/SV_Shared_Memory/SV_Shared_Memory_Test.cpp +++ b/examples/System_V_IPC/SV_Shared_Memory/SV_Shared_Memory_Test.cpp @@ -5,6 +5,8 @@ ACE_RCSID(SV_Shared_Memory, SV_Shared_Memory_Test, "$Id$") +#if defined (ACE_HAS_SYSV_IPC) && !defined(ACE_LACKS_SYSV_SHMEM) + static void client (void) { @@ -51,8 +53,8 @@ main (int, char *argv[]) { case -1: ACE_OS::perror (argv[0]), ACE_OS::exit (1); - case 0: - ACE_OS::sleep (1); + case 0: + ACE_OS::sleep (1); client (); default: server (); @@ -60,3 +62,13 @@ main (int, char *argv[]) return 0; } +#else + +int main (int, char *[]) +{ + ACE_ERROR ((LM_ERROR, + "SYSV IPC, or SYSV SHMEM is not supported on this platform\n")); + return 0; +} +#endif /* ACE_HAS_SYSV_IPC && !ACE_LACKS_SYSV_SHMEM/ + |