Skip to content

Commit b287d38

Browse files
committed
Support: unwrap storage for parameter to pipe
Android declares pipe as: ``` int pipe(int __fds[_Nonnull 2]); ``` Ensure that we unwrap the storage before we pass along the parameter to the syscall. This repairs the build for Android.
1 parent 4e7dd97 commit b287d38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Testing/Support/FileHandle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ extension FileHandle {
447447
throw CError(rawValue: swt_errno())
448448
}
449449
#else
450-
guard 0 == pipe(fds.baseAddress) else {
450+
guard 0 == pipe(fds.baseAddress!) else {
451451
throw CError(rawValue: swt_errno())
452452
}
453453
#endif

0 commit comments

Comments
 (0)