Skip to content

Commit

Permalink
Add support for builds on HPE NonStop.
Browse files Browse the repository at this point in the history
This change includes modifying Makefile so that CFLAGS can be
overridden by an invoking Makefile or shell. It also modifies sandbox.h
to support an older form of mktemp/mkdir supported on the NonStop
platform.

Fixes: clar-test#95

Signed-off-by: Randall S. Becker <[email protected]>
  • Loading branch information
rsbeckerca committed Aug 1, 2024
1 parent faa8419 commit c023fe4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions clar/sandbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ static int build_sandbox_path(void)
if (_mktemp(_clar_path) == NULL)
return -1;

if (mkdir(_clar_path, 0700) != 0)
return -1;
#elif defined(__TANDEM)
if (mktemp(_clar_path) == NULL)
return -1;

if (mkdir(_clar_path, 0700) != 0)
return -1;
#elif defined(_WIN32)
Expand Down
2 changes: 1 addition & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ TEST_DIRECTORY := $(abspath $(dir $(CURRENT_MAKEFILE)))
CLAR_PATH := $(dir $(TEST_DIRECTORY))
CLAR_FIXTURE_PATH := $(TEST_DIRECTORY)/resources/

CFLAGS=-g -I.. -I. -Wall -DCLAR_FIXTURE_PATH=\"$(CLAR_FIXTURE_PATH)\"
CFLAGS?=-g -I.. -I. -Wall -DCLAR_FIXTURE_PATH=\"$(CLAR_FIXTURE_PATH)\"

.PHONY: clean

Expand Down

0 comments on commit c023fe4

Please sign in to comment.