diff options
author | Pedro Giffuni <pfg@apache.org> | 2011-11-15 01:35:13 +0000 |
---|---|---|
committer | Pedro Giffuni <pfg@apache.org> | 2011-11-15 01:35:13 +0000 |
commit | d59e2f8a13d8e87f6b4dab6c15d98d5e6a230948 (patch) | |
tree | 9d0b4334e36e3c9d427a382a2f128ac54fd3cf50 /libxslt/libxslt-bsd.patch | |
parent | 5a981380abd18e60b9a5c44935e30d626f66eb21 (diff) |
FreeBSD port patches for libxslt.
Diffstat (limited to 'libxslt/libxslt-bsd.patch')
-rw-r--r-- | libxslt/libxslt-bsd.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libxslt/libxslt-bsd.patch b/libxslt/libxslt-bsd.patch new file mode 100644 index 000000000000..5ec6e020ba74 --- /dev/null +++ b/libxslt/libxslt-bsd.patch @@ -0,0 +1,26 @@ +--- misc/libxslt-1.1.26/libexslt/date.c.orig 2007-09-07 10:59:04.000000000 -0500 ++++ misc/build/libxslt-1.1.26/libexslt/date.c 2007-09-07 10:59:21.000000000 -0500 +@@ -28,7 +28,7 @@ + #include "config.h" + #endif + +-#if HAVE_LOCALTIME_R /* _POSIX_SOURCE required by gnu libc */ ++#if defined(HAVE_LOCALTIME_R) && defined(__GLIBC__) /* _POSIX_SOURCE required by gnu libc */ + #ifndef _AIX51 /* but on AIX we're not using gnu libc */ + #define _POSIX_SOURCE + #endif +--- misc/libxslt-1.1.26/libxslt/extra.c.orig 2009-05-12 01:29:34.000000000 -0500 ++++ misc/build/libxslt-1.1.26/libxslt/extra.c 2011-11-14 20:46:39.000000000 -0500 +@@ -243,8 +243,11 @@ + * Calling localtime() has the side-effect of setting timezone. + * After we know the timezone, we can adjust for it + */ ++#if defined(__GLIBC__) + lmt = gmt - timezone; +- ++#else /* FreeBSD DOESN'T HAVE such side-ffect */ ++ lmt = gmt - local_tm->tm_gmtoff; ++#endif + /* + * FIXME: it's been too long since I did manual memory management. + * (I swore never to do it again.) Does this introduce a memory leak? |