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 /Makefile.flags | |
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 'Makefile.flags')
-rw-r--r-- | Makefile.flags | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags index 0950ddb0d..2687781f1 100644 --- a/Makefile.flags +++ b/Makefile.flags | |||
@@ -149,7 +149,7 @@ endif | |||
149 | ifeq ($(CONFIG_PLATFORM_MINGW32),y) | 149 | ifeq ($(CONFIG_PLATFORM_MINGW32),y) |
150 | CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy -fno-builtin-stpncpy -fno-ident -fno-builtin-strndup | 150 | CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy -fno-builtin-stpncpy -fno-ident -fno-builtin-strndup |
151 | EXEEXT = .exe | 151 | EXEEXT = .exe |
152 | LDLIBS += ws2_32 mingwex -l:libssp.a | 152 | LDLIBS += ws2_32 |
153 | endif | 153 | endif |
154 | 154 | ||
155 | ifneq ($(CONFIG_PLATFORM_MINGW32),y) | 155 | ifneq ($(CONFIG_PLATFORM_MINGW32),y) |