Skip to content

Commit 2457169

Browse files
authored
Merge pull request #597 from talex5/windows-fixes
Fix some MDX problems on Windows
2 parents b755d9e + f81880d commit 2457169

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# To work around MDX issues
2+
README.md text eol=lf

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,8 @@ let try_mkdir path =
842842
The checks also apply to following symlinks:
843843

844844
```ocaml
845-
# Unix.symlink "dir1" "link-to-dir1"; Unix.symlink "/tmp" "link-to-tmp";;
845+
# Unix.symlink "dir1" "link-to-dir1";
846+
Unix.symlink (Filename.get_temp_dir_name ()) "link-to-tmp";;
846847
- : unit = ()
847848
848849
# Eio_main.run @@ fun env ->

lib_eio_windows/dune

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
(library
22
(name eio_windows)
33
(public_name eio_windows)
4-
(library_flags :standard -ccopt -lbcrypt -ccopt -lntdll)
4+
(library_flags :standard -cclib -lbcrypt -cclib -lntdll)
55
(enabled_if (= %{os_type} "Win32"))
66
(foreign_stubs
77
(language c)
88
(include_dirs ../lib_eio/unix/include)
99
(names eio_windows_stubs eio_windows_cstruct_stubs))
10+
(c_library_flags :standard -lbcrypt -lntdll)
1011
(libraries eio eio.unix eio.utils fmt))
1112

1213
(rule

0 commit comments

Comments
 (0)