Skip to content

Commit 0f56bfa

Browse files
authored
Merge pull request #8743 from tkremenek/rdar-31549450
2 parents 66d9533 + c18b4be commit 0f56bfa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

stdlib/public/Platform/Darwin.swift.gyb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,12 @@ public let ${prefix}_TRUE_MIN = ${type}.leastNonzeroMagnitude
7070
#endif
7171
% end
7272
%end
73+
74+
// Macros defined in bsd/sys/proc.h that do not import into Swift.
75+
extension extern_proc {
76+
// #define p_starttime p_un.__p_starttime
77+
@_transparent var p_starttime: timeval {
78+
get { return self.p_un.__p_starttime }
79+
set { self.p_un.__p_starttime = newValue }
80+
}
81+
}

0 commit comments

Comments
 (0)