Skip to content

fix: include unistd.h on macOS to expose mkdtemp in filesystem.cc#12187

Merged
trivialfis merged 1 commit into
dmlc:masterfrom
twdavisx:fix/macos-mkdtemp-build
Apr 28, 2026
Merged

fix: include unistd.h on macOS to expose mkdtemp in filesystem.cc#12187
trivialfis merged 1 commit into
dmlc:masterfrom
twdavisx:fix/macos-mkdtemp-build

Conversation

@twdavisx
Copy link
Copy Markdown
Contributor

Include <unistd.h> under #if defined(__APPLE__) in tests/cpp/filesystem.cc to expose mkdtemp on macOS.
Tested on macOS Apple Silicon (arm64).

Closes #12186

@trivialfis trivialfis merged commit f047d43 into dmlc:master Apr 28, 2026
80 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C++ tests fail to build on macOS due to mkdtemp not declared

2 participants