Skip to content

Add CI job to build on Solaris#249

Merged
bjosv merged 1 commit intovalkey-io:mainfrom
bjosv:ci-add-solaris
Oct 16, 2025
Merged

Add CI job to build on Solaris#249
bjosv merged 1 commit intovalkey-io:mainfrom
bjosv:ci-add-solaris

Conversation

@bjosv
Copy link
Copy Markdown
Collaborator

@bjosv bjosv commented Oct 15, 2025

Adds a CI job and some fixes to build on Solaris.

The file command.c needs to include fmacros.h to enable strncasecmp on Solaris (using _XOPEN_SOURCE),
but since command.c also uses alloca we need to make sure it's available on FreeBSD.
Since alloca is not visible when using _POSIX_C_SOURCE or _XOPEN_SOURCE on FreeBSD (they unsets __BSD_VISIBLE) we have to remove these defines on FreeBSD.

The file command.c needs to include fmacros.h to enable 'strncasecmp'
on Solaris (using _XOPEN_SOURCE), but since command.c also uses
'alloca' we need to make sure that api is available on FreeBSD.
Since 'alloca' is not visible when using _POSIX_C_SOURCE or _XOPEN_SOURCE
on FreeBSD (they unsets __BSD_VISIBLE) we disable them on FreeBSD.

Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
@bjosv bjosv merged commit efe1ec9 into valkey-io:main Oct 16, 2025
68 of 69 checks passed
@bjosv bjosv deleted the ci-add-solaris branch October 16, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant