Skip to content

Commit e639a37

Browse files
committed
Merge pull request #1837 from petermm/ci-macos-update-versions
CI: update macos version (gh deprecation) https://github.blog/changelog/2025-09-19-github-actions-macos-13-runner-image-is-closing-down/ macos-13 is being deprecated, instead we add the new macos-15-intel. These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 9be121e + 239a996 commit e639a37

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/build-and-test-macos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
strategy:
3939
fail-fast: false
4040
matrix:
41-
os: ["macos-13", "macos-14"]
41+
os: ["macos-14", "macos-15", "macos-15-intel", "macos-26"]
4242
otp: ["24", "25", "26"]
4343

4444
steps:

src/platforms/generic_unix/lib/sys.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,16 +525,14 @@ Context *sys_create_port(GlobalContext *glb, const char *driver_name, term opts)
525525
#ifdef DYNLOAD_PORT_DRIVERS
526526
void *handle;
527527
{
528-
char port_driver_name[64 + strlen("avm_"
529-
"_port_driver.so")
530-
+ 1];
528+
char port_driver_name[64 + sizeof("avm_") - 1 + sizeof("_port_driver.so") - 1 + 1];
531529
snprintf(port_driver_name, sizeof(port_driver_name), "./avm_%s_port_driver.so", driver_name);
532530
handle = dlopen(port_driver_name, RTLD_NOW);
533531
if (!handle) {
534532
return NULL;
535533
}
536534
}
537-
char port_driver_func_name[64 + strlen("_create_port") + 1];
535+
char port_driver_func_name[64 + sizeof("_create_port") - 1 + 1];
538536
snprintf(port_driver_func_name, sizeof(port_driver_func_name), "%s_create_port", driver_name);
539537
create_port_t create_port
540538
= (create_port_t) CAST_VOID_TO_FUNC_PTR(dlsym(handle, port_driver_func_name));

0 commit comments

Comments
 (0)