Skip to content

Commit f640d28

Browse files
committed
Update lightweightsemaphore.h
... to support building on zOS. Signed-off-by: v1gnesh <v1gnesh@users.noreply.github.com>
1 parent dd532b3 commit f640d28

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lightweightsemaphore.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ extern "C" {
2424
}
2525
#elif defined(__MACH__)
2626
#include <mach/mach.h>
27+
#elif defined(__MVS__)
28+
#include <zos-semaphore.h>
2729
#elif defined(__unix__)
2830
#include <semaphore.h>
2931
#elif defined(__MVS__)
@@ -167,9 +169,9 @@ class Semaphore
167169
}
168170
}
169171
};
170-
#elif defined(__unix__)
172+
#elif defined(__unix__) || defined(__MVS__)
171173
//---------------------------------------------------------
172-
// Semaphore (POSIX, Linux)
174+
// Semaphore (POSIX, Linux, zOS)
173175
//---------------------------------------------------------
174176
class Semaphore
175177
{

0 commit comments

Comments
 (0)