Skip to content

build: drop dirent.h and opendir() detections on Windows - #22588

Closed
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:w-no-opendir
Closed

vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:w-no-opendir

Conversation

@vszakats

@vszakats vszakats commented Aug 15, 2026

Copy link
Copy Markdown
Member

opendir() was used previously with mingw-w64 for file:// directory
listing support. This was replaced by a native Win32 solution on all
Windows platforms, leaving opendir() no longer used. Drop related
feature detections.

Follow-up to c7c42af #22577


Note, config-win32.h did not prefill this for mingw-w64. This is more
of a missed "formality" or documentation, because this header hasn't
been used with mingw-w64 for a good while now, at least not from within
curl.

@vszakats
vszakats marked this pull request as draft August 15, 2026 07:14
@vszakats vszakats changed the title build: drop opendir() detection on Windows build: drop dirent.h and opendir() detections on Windows Aug 15, 2026
@vszakats vszakats removed the on-hold label Aug 15, 2026
@vszakats
vszakats marked this pull request as ready for review August 15, 2026 10:21
@vszakats
vszakats requested a balanced review from Copilot August 15, 2026 10:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes obsolete Windows checks for dirent.h and opendir() following the native Win32 directory-listing implementation.

Changes:

  • Restricts Autoconf checks to non-native Windows targets.
  • Restricts CMake checks to non-Windows targets.
  • Removes obsolete Windows cache entries.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
configure.ac Skips obsolete checks on native Windows.
CMakeLists.txt Moves checks into the non-Windows block.
CMake/win32-cache.cmake Removes cached Windows feature values.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vszakats vszakats closed this in e090cf5 Aug 16, 2026
@vszakats
vszakats deleted the w-no-opendir branch August 16, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants