[libxslt] Fix a portibility problem with previous commit



commit 8f9303f3b2a73523767b158f9be8dbf2a89ba3a2
Author: Eduard Sanou <dhole openmailbox org>
Date:   Wed May 18 14:45:21 2016 +0800

    Fix a portibility problem with previous commit
    
    Eduard pointed an issue with the scoping for override
    if errno.h is not available.

 libexslt/date.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libexslt/date.c b/libexslt/date.c
index 4d5b8ba..3af6f7f 100644
--- a/libexslt/date.c
+++ b/libexslt/date.c
@@ -763,8 +763,8 @@ exsltDateCurrent (void)
     exsltDateValPtr ret;
 #ifdef HAVE_ERRNO_H
     char *source_date_epoch;
-    int override = 0;
 #endif /* HAVE_ERRNO_H */
+    int override = 0;
 
     ret = exsltDateCreateDate(XS_DATETIME);
     if (ret == NULL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]