Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change stack_depth_t to size_t on OpenBSD #4575

Merged
merged 2 commits into from
Jan 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .release-notes/4575.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Change stack_depth_t to size_t on OpenBSD

The definition of stack_depth_t was changed from int to size_t to support compiling on OpenBSD 7.6.

ponyc may not be compilable on earlier versions of OpenBSD.
2 changes: 1 addition & 1 deletion src/libponyrt/platform/ponyassert.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static PONY_ATOMIC_INIT(bool, assert_guard, false);

#ifdef PLATFORM_IS_POSIX_BASED

#if defined(PLATFORM_IS_BSD) && !defined(PLATFORM_IS_OPENBSD)
#if defined(PLATFORM_IS_BSD)
typedef size_t stack_depth_t;
#else
typedef int stack_depth_t;
Expand Down
Loading