diff options
author | Ron Yorston <rmy@pobox.com> | 2021-06-13 08:13:25 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-06-13 08:13:25 +0100 |
commit | f7e4fe39a69b82bcef1aaa68111ccfa68b209ada (patch) | |
tree | 23d63dd3d27f4fdb6e475c35e348b3c8299e6e6c /win32/Kbuild | |
parent | cfac1da2aaccaf45a669b0a53c82a32c8231827c (diff) | |
download | busybox-w32-f7e4fe39a69b82bcef1aaa68111ccfa68b209ada.tar.gz busybox-w32-f7e4fe39a69b82bcef1aaa68111ccfa68b209ada.tar.bz2 busybox-w32-f7e4fe39a69b82bcef1aaa68111ccfa68b209ada.zip |
win32: add local dirent implementation
Add a cut down version of the dirent implementation from git.
The git developers said:
The mingw-runtime implemenation of opendir, readdir and closedir
sets errno to 0 on success, something that POSIX explicitly
forbids.
This also avoids having to link against libssp.a (commit 13eb34205)
and reduces the size of the binary by 2KB.
Diffstat (limited to 'win32/Kbuild')
-rw-r--r-- | win32/Kbuild | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/Kbuild b/win32/Kbuild index f3d0244d2..cabd70849 100644 --- a/win32/Kbuild +++ b/win32/Kbuild | |||
@@ -4,6 +4,7 @@ | |||
4 | 4 | ||
5 | lib-y:= | 5 | lib-y:= |
6 | 6 | ||
7 | lib-$(CONFIG_PLATFORM_MINGW32) += dirent.o | ||
7 | lib-$(CONFIG_PLATFORM_MINGW32) += env.o | 8 | lib-$(CONFIG_PLATFORM_MINGW32) += env.o |
8 | lib-$(CONFIG_PLATFORM_MINGW32) += fnmatch.o | 9 | lib-$(CONFIG_PLATFORM_MINGW32) += fnmatch.o |
9 | lib-$(CONFIG_PLATFORM_MINGW32) += fsync.o | 10 | lib-$(CONFIG_PLATFORM_MINGW32) += fsync.o |