Skip to content

Commit 917ff60

Browse files
committed
adjust PTHREAD_STACK_MIN to current value on OpenBSD
while here, generate the right file in test_openbsd()
1 parent 1236fed commit 917ff60

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

libc-test/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ fn test_openbsd(target: &str) {
10881088
(struct_ == "siginfo_t" && field == "si_addr")
10891089
});
10901090

1091-
cfg.generate("../src/lib.rs", "linux_fcntl.rs");
1091+
cfg.generate("../src/lib.rs", "main.rs");
10921092
}
10931093

10941094
fn test_windows(target: &str) {

src/unix/bsd/netbsdlike/openbsdlike/bitrig/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ pub const IFF_LINK1: ::c_int = 0x2000; // per link layer defined bit
9898
pub const IFF_LINK2: ::c_int = 0x4000; // per link layer defined bit
9999
pub const IFF_MULTICAST: ::c_int = 0x8000; // supports multicast
100100

101+
pub const PTHREAD_STACK_MIN : ::size_t = 2048;
101102
pub const SIGSTKSZ : ::size_t = 40960;
102103

103104
pub const PT_FIRSTMACH: ::c_int = 32;

src/unix/bsd/netbsdlike/openbsdlike/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,6 @@ pub const O_RSYNC: ::c_int = O_SYNC;
399399
pub const MS_SYNC : ::c_int = 0x0002;
400400
pub const MS_INVALIDATE : ::c_int = 0x0004;
401401

402-
pub const PTHREAD_STACK_MIN : ::size_t = 2048;
403-
404402
pub const POLLNORM: ::c_short = ::POLLRDNORM;
405403

406404
pub const ENOATTR : ::c_int = 83;

src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ pub const IFF_LINK1: ::c_int = 0x2000; // per link layer defined bit
403403
pub const IFF_LINK2: ::c_int = 0x4000; // per link layer defined bit
404404
pub const IFF_MULTICAST: ::c_int = 0x8000; // supports multicast
405405

406+
pub const PTHREAD_STACK_MIN : ::size_t = 4096;
406407
pub const SIGSTKSZ : ::size_t = 28672;
407408

408409
pub const PT_FIRSTMACH: ::c_int = 32;

0 commit comments

Comments
 (0)