Skip to content

Commit

Permalink
Change stack_depth_t to size_t on OpenBSD (#4575)
Browse files Browse the repository at this point in the history
Required to compile on OpenBSD 7.6 which is the current OpenBSD release.
  • Loading branch information
dspx-plcr authored Jan 5, 2025
1 parent 2f6c704 commit b8c0998
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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

0 comments on commit b8c0998

Please sign in to comment.