Portability

- Detected birth time in struct stat.
This commit is contained in:
Paul Beckingham 2012-10-13 22:20:08 -04:00
parent 9fe9f96f8f
commit 42661312d6
2 changed files with 2 additions and 4 deletions

View file

@ -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)

View file

@ -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
////////////////////////////////////////////////////////////////////////////////