Skip to content

Commit ee283a7

Browse files
Fix ABI break on MacOS Apple silicon for shm_open() (#23609)
1 parent ac520c6 commit ee283a7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • druntime/src/core/sys/posix/sys

druntime/src/core/sys/posix/sys/mman.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,7 @@ else
915915
//
916916
/*
917917
int shm_open(const scope char*, int, mode_t);
918+
int shm_open(const scope char*, int, ...); (Darwin)
918919
int shm_unlink(const scope char*);
919920
*/
920921

@@ -925,7 +926,7 @@ version (CRuntime_Glibc)
925926
}
926927
else version (Darwin)
927928
{
928-
int shm_open(const scope char*, int, mode_t);
929+
int shm_open(const scope char*, int, ...);
929930
int shm_unlink(const scope char*);
930931
}
931932
else version (FreeBSD)

0 commit comments

Comments
 (0)