From e86a3ddd8b60eb0720874f5b9679446d12a1ac41 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Fri, 12 Feb 2021 14:02:28 +0000 Subject: win32: make readlink(2) implementation unconditional There doesn't seem to be much advantage in having readlink(2) as a configuration option. Making it unconditional reduces divergence from upstream and allows the removal of a check for ENOSYS that's been in busybox-w32 since the start. --- win32/mingw.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'win32') diff --git a/win32/mingw.c b/win32/mingw.c index 474d9cdc6..15529ed58 100644 --- a/win32/mingw.c +++ b/win32/mingw.c @@ -4,9 +4,7 @@ #if ENABLE_FEATURE_EXTRA_FILE_DATA #include #endif -#if ENABLE_FEATURE_READLINK2 #include -#endif #if defined(__MINGW64_VERSION_MAJOR) #if ENABLE_GLOBBING @@ -1146,7 +1144,6 @@ char *realpath(const char *path, char *resolved_path) return NULL; } -#if ENABLE_FEATURE_READLINK2 static wchar_t *normalize_ntpath(wchar_t *wbuf) { int i; @@ -1206,7 +1203,6 @@ ssize_t readlink(const char *pathname, char *buf, size_t bufsiz) errno = err_win_to_posix(); return -1; } -#endif const char *get_busybox_exec_path(void) { -- cgit v1.2.3-55-g6feb