path: root/os/windows/posix/include/dirent.h
diff options
authorBruce Cran <>2012-02-20 20:18:19 +0100
committerJens Axboe <>2012-02-20 20:18:19 +0100
commit93bcfd20e37cef8cec350fe06d3a086724c9f257 (patch)
treefee8b2da5b190b0d4fd940f7cef5e58cd7faa113 /os/windows/posix/include/dirent.h
parent16de1bf91ca80e62ce257a24cae471fab140bbe0 (diff)
Move Windows port to MinGW
- Add calls to WSAStartup in the network code as required by Winsock. - Add Windows-specific init_random_state function which uses the Crypto API. - Move Windows port to MinGW and update build system to create a 64-bit binary by default. - Install text files as .rtf so they won't open in Notepad by default (Wordpad understands Unix line endings; Notepad doesn't). - Simplify WiX installer code. Signed-off-by: Jens Axboe <>
Diffstat (limited to 'os/windows/posix/include/dirent.h')
1 files changed, 16 insertions, 0 deletions
diff --git a/os/windows/posix/include/dirent.h b/os/windows/posix/include/dirent.h
new file mode 100644
index 00000000..39a880da
--- /dev/null
+++ b/os/windows/posix/include/dirent.h
@@ -0,0 +1,16 @@
+#ifndef DIRENT_H
+#define DIRENT_H
+struct dirent
+ ino_t d_ino; // File serial number.
+ char d_name[]; // Name of entry.
+typedef int DIR;
+DIR *opendir(const char *dirname);
+struct dirent *readdir(DIR *dirp);
+int closedir(DIR *dirp);
+#endif /* DIRENT_H */