From 42661312d6ba94bea59c2f286473acc79c667b80 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 13 Oct 2012 22:20:08 -0400 Subject: [PATCH] Portability - Detected birth time in struct stat. --- CMakeLists.txt | 1 + src/util.cpp | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c4236f56a..58ccfc9c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/util.cpp b/src/util.cpp index 774736f97..89add7022 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -621,8 +621,6 @@ const std::string indentProject ( return prefix + child; } -//////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// const std::vector extractParents ( const std::string& project, @@ -640,8 +638,6 @@ const std::vector 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 + ////////////////////////////////////////////////////////////////////////////////