Skip to content

Commit 98a8b58

Browse files
committed
add //FIXME for FreeBSD outcommented code, add sys/event.h for kqueue (untested)
1 parent b267fda commit 98a8b58

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

stdlib/private/StdlibUnittest/RaceTest.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ func autoreleasepool(invoking code: () -> Void) {
5454
}
5555
#endif
5656

57+
// FIXME: On FreeBSD, code in this file doesn't compile
5758
#if !os(FreeBSD)
5859
/// Race tests that need a fresh set of data for every trial should implement
5960
/// this protocol.

stdlib/private/SwiftPrivatePthreadExtras/PthreadBarriers.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import Darwin
1616
import Glibc
1717
#endif
1818

19+
// FIXME: On FreeBSD, code in this file doesn't compile
1920
#if !os(FreeBSD)
2021
//
2122
// Implement pthread barriers.

stdlib/private/SwiftPrivatePthreadExtras/SwiftPrivatePthreadExtras.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import Darwin
2121
import Glibc
2222
#endif
2323

24+
// FIXME: On FreeBSD, code in this file doesn't compile
2425
#if !os(FreeBSD)
2526
/// An abstract base class to encapsulate the context necessary to invoke
2627
/// a block from pthread_create.

stdlib/public/Platform/glibc.modulemap.gyb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,12 @@ module SwiftGlibc [system] {
380380
header "${GLIBC_ARCH_INCLUDE_PATH}/sys/types.h"
381381
export *
382382
}
383+
% if CMAKE_SDK != "FREEBSD":
384+
module event {
385+
header "${GLIBC_ARCH_INCLUDE_PATH}/sys/event.h"
386+
export *
387+
}
388+
% end
383389
module uio {
384390
header "${GLIBC_ARCH_INCLUDE_PATH}/sys/uio.h"
385391
export *

0 commit comments

Comments
 (0)