mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Portability
- Detected birth time in struct stat.
This commit is contained in:
parent
9fe9f96f8f
commit
42661312d6
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue