aboutsummaryrefslogtreecommitdiff
path: root/win32/Kbuild
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-06-13 08:13:25 +0100
committerRon Yorston <rmy@pobox.com>2021-06-13 08:13:25 +0100
commitf7e4fe39a69b82bcef1aaa68111ccfa68b209ada (patch)
tree23d63dd3d27f4fdb6e475c35e348b3c8299e6e6c /win32/Kbuild
parentcfac1da2aaccaf45a669b0a53c82a32c8231827c (diff)
downloadbusybox-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/Kbuild1
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
5lib-y:= 5lib-y:=
6 6
7lib-$(CONFIG_PLATFORM_MINGW32) += dirent.o
7lib-$(CONFIG_PLATFORM_MINGW32) += env.o 8lib-$(CONFIG_PLATFORM_MINGW32) += env.o
8lib-$(CONFIG_PLATFORM_MINGW32) += fnmatch.o 9lib-$(CONFIG_PLATFORM_MINGW32) += fnmatch.o
9lib-$(CONFIG_PLATFORM_MINGW32) += fsync.o 10lib-$(CONFIG_PLATFORM_MINGW32) += fsync.o