Skip to content

Commit 260faee

Browse files
authored
Support: unwrap storage for parameter to pipe (#703)
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 260faee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Testing/Support/FileHandle.swift

Lines changed: 1 addition & 1 deletion
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)