Skip to content

Commit 156f82c

Browse files
committed
Add AF_INET6 for Xtensa.
1 parent 82453b3 commit 156f82c

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/unix/newlib/aarch64/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ s! {
3030
}
3131
}
3232

33+
pub const AF_INET6: ::c_int = 23;
34+
3335
pub const FIONBIO: ::c_ulong = 1;
3436

3537
pub const POLLIN: ::c_short = 0x1;

src/unix/newlib/arm/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ s! {
3232
}
3333
}
3434

35+
pub const AF_INET6: ::c_int = 23;
36+
3537
pub const FIONBIO: ::c_ulong = 1;
3638

3739
pub const POLLIN: ::c_short = 0x1;

src/unix/newlib/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ pub const PF_INET6: ::c_int = 23;
416416

417417
pub const AF_UNSPEC: ::c_int = 0;
418418
pub const AF_INET: ::c_int = 2;
419-
pub const AF_INET6: ::c_int = 23;
420419

421420
pub const CLOCK_REALTIME: ::clockid_t = 1;
422421
pub const CLOCK_MONOTONIC: ::clockid_t = 4;

src/unix/newlib/xtensa/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ s! {
6060
}
6161

6262
pub const AF_UNIX: ::c_int = 1;
63+
pub const AF_INET6: ::c_int = 10;
6364

6465
pub const FIONBIO: ::c_ulong = 2147772030;
6566

0 commit comments

Comments
 (0)