diff --git a/libc-test/semver/hermit.txt b/libc-test/semver/hermit.txt index ba44a7d2246ca..43ca11b6acf74 100644 --- a/libc-test/semver/hermit.txt +++ b/libc-test/semver/hermit.txt @@ -1,5 +1,7 @@ AF_INET AF_INET6 +AF_UNSPEC +AF_VSOCK CLOCK_MONOTONIC CLOCK_REALTIME DT_BLK diff --git a/src/hermit.rs b/src/hermit.rs index db51ee94b7881..b96be6b0e2a2f 100644 --- a/src/hermit.rs +++ b/src/hermit.rs @@ -114,8 +114,10 @@ s! { } } -pub const AF_INET: i32 = 0; +pub const AF_UNSPEC: i32 = 0; +pub const AF_INET: i32 = 3; pub const AF_INET6: i32 = 1; +pub const AF_VSOCK: i32 = 2; pub const CLOCK_REALTIME: clockid_t = 1; pub const CLOCK_MONOTONIC: clockid_t = 4;