changeset 228:be1009c92ac2

patch from Fridrich Strba to build with DJGPP DOS cross-compiler
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Sep 2009 15:16:53 -0700
parents adf1db1f0b19
children e7f363452178
files ChangeLog NEWS configure.in libpst.spec.in src/define.h
diffstat 5 files changed, 17 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jun 23 20:41:00 2009 -0700
+++ b/ChangeLog	Thu Sep 03 15:16:53 2009 -0700
@@ -1,3 +1,7 @@
+LibPST 0.6.42 (2009-09-03)
+===============================
+    * patch from Fridrich Strba to build with DJGPP DOS cross-compiler.
+
 LibPST 0.6.41 (2009-06-23)
 ===============================
     * fix ax_python detection - should not use locate command
--- a/NEWS	Tue Jun 23 20:41:00 2009 -0700
+++ b/NEWS	Thu Sep 03 15:16:53 2009 -0700
@@ -1,3 +1,4 @@
+0.6.42  2009-09-03 patch from Fridrich Strba to build with DJGPP DOS cross-compiler
 0.6.41  2009-06-23 fix ax_python detection - should not use locate command
 0.6.40  2009-06-23 fedora 11 has python2.6, remove pdf version of the man pages
 0.6.39  2009-06-21 fedora > 10 moved to boost-python-devel
--- a/configure.in	Tue Jun 23 20:41:00 2009 -0700
+++ b/configure.in	Thu Sep 03 15:16:53 2009 -0700
@@ -1,5 +1,5 @@
 AC_PREREQ(2.59)
-AC_INIT(libpst,0.6.41,carl@five-ten-sg.com)
+AC_INIT(libpst,0.6.42,carl@five-ten-sg.com)
 AC_CONFIG_SRCDIR([src/libpst.c])
 AC_CONFIG_HEADER([config.h])
 AM_INIT_AUTOMAKE
--- a/libpst.spec.in	Tue Jun 23 20:41:00 2009 -0700
+++ b/libpst.spec.in	Thu Sep 03 15:16:53 2009 -0700
@@ -146,6 +146,12 @@
 
 
 %changelog
+* Thu Sep 03 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.42-1
+- patch from Fridrich Strba to build with DJGPP DOS cross-compiler.
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.41-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
 * Tue Jun 23 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.41-1
 - fix ax_python detection - should not use locate command
 - checking for fedora versions is not needed
--- a/src/define.h	Tue Jun 23 20:41:00 2009 -0700
+++ b/src/define.h	Thu Sep 03 15:16:53 2009 -0700
@@ -94,6 +94,11 @@
     #define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0)
     #define ctime_r(tp,tmp) (ctime(tp)?(strcpy((tmp),ctime((tp))),(tmp)):0) 
 #else
+    #ifdef __DJGPP__
+        #define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0)
+        #define ctime_r(tp,tmp) (ctime(tp)?(strcpy((tmp),ctime((tp))),(tmp)):0)
+		#define fseeko(stream, offset, whence) fseek(stream, (long)offset, whence)
+    #endif
     #ifdef HAVE_UNISTD_H
         #include <unistd.h>
     #else