commit 9381d20558082564dd3b0816854815eeda7835d8
Author: Oswald Buddenhagen <[email protected]>
Date:   Sat Nov 9 13:50:48 2013 +0100

    fix strftime() %z conversion specifier check
    
    only glibc does something sane with gmtime()+strftime(). on bsd (incl.
    mac os), strftime() can be used only with localtime().

 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 479fff3..0c49a0c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,8 +20,8 @@ int main(void)
 {
     time_t t = 0;
     char buf[32];
-    strftime(buf, sizeof(buf), "%z", gmtime(&t));
-    return !!strcmp(buf, "+0000");
+    strftime(buf, sizeof(buf), "%z", localtime(&t));
+    return !(buf[0] == '+' || buf[0] == '-');
 }
 ], [ob_cv_strftime_z=yes], [ob_cv_strftime_z=no], [ob_cv_strftime_z="yes 
(assumed)"])])
 if test "x$ob_cv_strftime_z" = x"no"; then

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to