File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,10 @@ public struct ProcessResult: CustomStringConvertible {
31
31
public enum ExitStatus : Equatable {
32
32
/// The process was terminated normally with a exit code.
33
33
case terminated( code: Int32 )
34
-
34
+ #if !os(Windows)
35
35
/// The process was terminated due to a signal.
36
36
case signalled( signal: Int32 )
37
+ #endif
37
38
}
38
39
39
40
/// The arguments with which the process was launched.
@@ -758,9 +759,10 @@ extension ProcessResult.Error: CustomStringConvertible {
758
759
switch result. exitStatus {
759
760
case . terminated( let code) :
760
761
stream <<< " terminated( \( code) ): "
761
-
762
+ #if !os(Windows)
762
763
case . signalled( let signal) :
763
764
stream <<< " signalled( \( signal) ): "
765
+ #endif
764
766
}
765
767
766
768
// Strip sandbox information from arguments to keep things pretty.
You can’t perform that action at this time.
0 commit comments