File tree Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ INCLUDE(CheckSymbolExists)
31
31
INCLUDE (CheckStructHasMember)
32
32
INCLUDE (AddCFlagIfSupported)
33
33
INCLUDE (FindPkgConfig)
34
+ INCLUDE (FindStatNsec)
34
35
35
36
# Build options
36
37
#
@@ -103,23 +104,6 @@ IF(MSVC)
103
104
ADD_DEFINITIONS (-D_CRT_NONSTDC_NO_DEPRECATE)
104
105
ENDIF ()
105
106
106
- CHECK_STRUCT_HAS_MEMBER ("struct stat" st_mtim "sys/types.h;sys/stat.h"
107
- HAVE_STRUCT_STAT_ST_MTIM LANGUAGE C)
108
- CHECK_STRUCT_HAS_MEMBER ("struct stat" st_mtimespec "sys/types.h;sys/stat.h"
109
- HAVE_STRUCT_STAT_ST_MTIMESPEC LANGUAGE C)
110
- CHECK_STRUCT_HAS_MEMBER("struct stat" st_mtime_nsec sys/stat.h
111
- HAVE_STRUCT_STAT_MTIME_NSEC LANGUAGE C)
112
-
113
- IF (HAVE_STRUCT_STAT_ST_MTIM)
114
- CHECK_STRUCT_HAS_MEMBER("struct stat" st_mtim.tv_nsec sys/stat.h
115
- HAVE_STRUCT_STAT_NSEC LANGUAGE C)
116
- ELSEIF (HAVE_STRUCT_STAT_ST_MTIMESPEC)
117
- CHECK_STRUCT_HAS_MEMBER("struct stat" st_mtimespec.tv_nsec sys/stat.h
118
- HAVE_STRUCT_STAT_NSEC LANGUAGE C)
119
- ELSE ()
120
- SET ( HAVE_STRUCT_STAT_NSEC ON )
121
- ENDIF ()
122
-
123
107
# This variable will contain the libraries we need to put into
124
108
# libgit2.pc's Requires.private. That is, what we're linking to or
125
109
# what someone who's statically linking us needs to link to.
Original file line number Diff line number Diff line change
1
+ CHECK_STRUCT_HAS_MEMBER ("struct stat" st_mtim "sys/types.h;sys/stat.h"
2
+ HAVE_STRUCT_STAT_ST_MTIM LANGUAGE C)
3
+ CHECK_STRUCT_HAS_MEMBER ("struct stat" st_mtimespec "sys/types.h;sys/stat.h"
4
+ HAVE_STRUCT_STAT_ST_MTIMESPEC LANGUAGE C)
5
+ CHECK_STRUCT_HAS_MEMBER("struct stat" st_mtime_nsec sys/stat.h
6
+ HAVE_STRUCT_STAT_MTIME_NSEC LANGUAG
6B81
E C)
7
+
8
+ IF (HAVE_STRUCT_STAT_ST_MTIM)
9
+ CHECK_STRUCT_HAS_MEMBER("struct stat" st_mtim.tv_nsec sys/stat.h
10
+ HAVE_STRUCT_STAT_NSEC LANGUAGE C)
11
+ ELSEIF (HAVE_STRUCT_STAT_ST_MTIMESPEC)
12
+ CHECK_STRUCT_HAS_MEMBER("struct stat" st_mtimespec.tv_nsec sys/stat.h
13
+ HAVE_STRUCT_STAT_NSEC LANGUAGE C)
14
+ ELSE ()
15
+ SET ( HAVE_STRUCT_STAT_NSEC ON )
16
+ ENDIF ()
You can’t perform that action at this time.
0 commit comments