Skip to content

Commit 5e5dcc1

Browse files
committed
Include vm_page_size.h
The `vm_page_size` variable declared in `mach/vm_page_size.h` is used when the header is available for inclusion. This header does not appear to be included anywhere directly resulting in build failures due to the missing `vm_page_size` declaration.
1 parent f42369a commit 5e5dcc1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/_SubprocessCShims/process_shims.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
extern char **environ;
4444
#endif
4545

46+
#if __has_include(<mach/vm_page_size.h>)
47+
#include <mach/vm_page_size.h>
48+
#endif
49+
4650
int _was_process_exited(int status) {
4751
return WIFEXITED(status);
4852
}

0 commit comments

Comments
 (0)