Skip to content

Commit 2e49994

Browse files
committed
feat: add cygwin support
1 parent 6bdd37f commit 2e49994

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/os/unix/consts.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ mod posix {
8888
target_os = "redox",
8989
target_os = "nto",
9090
target_os = "hurd",
91+
target_os = "cygwin",
9192
))] {
9293
pub(super) const RTLD_LAZY: c_int = 1;
9394
} else {
@@ -127,6 +128,7 @@ mod posix {
127128
target_os = "redox",
128129
target_os = "nto",
129130
target_os = "hurd",
131+
target_os = "cygwin",
130132
))] {
131133
pub(super) const RTLD_NOW: c_int = 2;
132134
} else if #[cfg(all(target_os = "android",target_pointer_width = "32"))] {
@@ -179,6 +181,7 @@ mod posix {
179181
target_os = "redox",
180182
target_os = "nto",
181183
target_os = "hurd",
184+
target_os = "cygwin",
182185
))] {
183186
pub(super) const RTLD_GLOBAL: c_int = 0x100;
184187
} else {
@@ -224,6 +227,7 @@ mod posix {
224227
target_os = "fuchsia",
225228
target_os = "redox",
226229
target_os = "hurd",
230+
target_os = "cygwin",
227231
))] {
228232
pub(super) const RTLD_LOCAL: c_int = 0;
229233
} else {

0 commit comments

Comments
 (0)