Skip to content

Commit eb28423

Browse files
committed
Fix documentation of skipping aio_waitcomplete in FreeBSD10 tests
1 parent 7ce068e commit eb28423

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

libc-test/build.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,8 +1611,8 @@ fn test_freebsd(target: &str) {
16111611
| "TCP_PCAP_OUT"
16121612
| "TCP_PCAP_IN"
16131613
| "IP_BINDMULTI"
1614-
| "IP_ORIGDSTADDR "
1615-
| "IP_RECVORIGDSTADDR "
1614+
| "IP_ORIGDSTADDR"
1615+
| "IP_RECVORIGDSTADDR"
16161616
| "IPV6_ORIGDSTADDR"
16171617
| "IPV6_RECVORIGDSTADDR"
16181618
| "PD_CLOEXEC"
@@ -1657,11 +1657,11 @@ fn test_freebsd(target: &str) {
16571657
"execv" | "execve" | "execvp" | "execvpe" | "fexecve" => true,
16581658

16591659
// These functions were added in FreeBSD 11:
1660-
"fdatasync" | "aio_waitcomplete" | "mq_getfd_np"
1661-
if Some(10) == freebsd_ver =>
1662-
{
1663-
true
1664-
}
1660+
"fdatasync" | "mq_getfd_np" if Some(10) == freebsd_ver => true,
1661+
1662+
// This function changed its return type from `int` in FreeBSD10 to
1663+
// `ssize_t` in FreeBSD11:
1664+
"aio_waitcomplete" if Some(10) == freebsd_ver => true,
16651665

16661666
// The `uname` function in the `utsname.h` FreeBSD header is a C
16671667
// inline function (has no symbol) that calls the `__xuname` symbol.

0 commit comments

Comments
 (0)