Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
e65229ee
Unverified
Commit
e65229ee
authored
Jul 31, 2021
by
Edward Thomson
Committed by
GitHub
Jul 31, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5962 from libgit2/ethomson/futimens
parents
f6b3f726
3062a633
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletions
+16
-1
CMakeLists.txt
+1
-0
cmake/Findfutimens.cmake
+14
-0
src/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
e65229ee
...
...
@@ -27,6 +27,7 @@ INCLUDE(AddCFlagIfSupported)
INCLUDE
(
FindPkgLibraries
)
INCLUDE
(
FindThreads
)
INCLUDE
(
FindStatNsec
)
INCLUDE
(
Findfutimens
)
INCLUDE
(
GNUInstallDirs
)
INCLUDE
(
IdeSplitSources
)
INCLUDE
(
FeatureSummary
)
...
...
cmake/Findfutimens.cmake
0 → 100644
View file @
e65229ee
INCLUDE
(
EnableWarnings
)
IF
(
APPLE
)
# We cannot simply CHECK_FUNCTION_EXISTS on macOS because
# MACOSX_DEPLOYMENT_TARGET may be set to a version in the past
# that doesn't have futimens. Instead we need to enable warnings
# as errors, then check for the symbol existing in `sys/stat.h`,
# then reset warnings as errors.
ENABLE_WARNINGS
(
error
)
CHECK_SYMBOL_EXISTS
(
futimens sys/stat.h HAVE_FUTIMENS
)
DISABLE_WARNINGS
(
error
)
ELSE
()
CHECK_FUNCTION_EXISTS
(
futimens HAVE_FUTIMENS
)
ENDIF
()
src/CMakeLists.txt
View file @
e65229ee
...
...
@@ -38,10 +38,10 @@ IF(ENABLE_TRACE)
ENDIF
()
ADD_FEATURE_INFO
(
tracing GIT_TRACE
"tracing support"
)
CHECK_FUNCTION_EXISTS
(
futimens HAVE_FUTIMENS
)
IF
(
HAVE_FUTIMENS
)
SET
(
GIT_USE_FUTIMENS 1
)
ENDIF
()
ADD_FEATURE_INFO
(
futimens GIT_USE_FUTIMENS
"futimens support"
)
CHECK_PROTOTYPE_DEFINITION
(
qsort_r
"void qsort_r(void *base, size_t nmemb, size_t size, void *thunk, int (*compar)(void *, const void *, const void *))"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment