Portability
- Detected birth time in struct stat.
This commit is contained in:
@@ -72,6 +72,7 @@ check_function_exists (srandom HAVE_SRANDOM)
|
||||
check_function_exists (timegm HAVE_TIMEGM)
|
||||
|
||||
check_struct_has_member ("struct tm" tm_gmtoff time.h HAVE_TM_GMTOFF)
|
||||
check_struct_has_member ("struct stat" st_birthtime "sys/types.h;sys/stat.h" HAVE_ST_BIRTHTIME)
|
||||
|
||||
message ("-- Looking for libuuid")
|
||||
if (DARWIN)
|
||||
|
||||
@@ -621,8 +621,6 @@ const std::string indentProject (
|
||||
return prefix + child;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
const std::vector <std::string> extractParents (
|
||||
const std::string& project,
|
||||
@@ -640,8 +638,6 @@ const std::vector <std::string> extractParents (
|
||||
return vec;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef HAVE_TIMEGM
|
||||
time_t timegm (struct tm *tm)
|
||||
@@ -660,5 +656,6 @@ time_t timegm (struct tm *tm)
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user