Compare commits
No commits in common. 'i10ce' and 'c9' have entirely different histories.
@ -1 +1 @@
|
||||
SOURCES/libpst-0.6.76.tar.gz
|
||||
SOURCES/libpst-0.6.75.tar.gz
|
||||
|
@ -1 +1 @@
|
||||
a540d778a808a450d909cded0e52f7f4175c690c SOURCES/libpst-0.6.76.tar.gz
|
||||
9edf3a611115c94472d831b6ac400fca3264d8f2 SOURCES/libpst-0.6.75.tar.gz
|
||||
|
@ -1,12 +0,0 @@
|
||||
diff -up libpst-0.6.76/src/libpst.c.incompatible-pointer-i686 libpst-0.6.76/src/libpst.c
|
||||
--- libpst-0.6.76/src/libpst.c.incompatible-pointer-i686 2024-01-22 17:39:52.792216627 +0100
|
||||
+++ libpst-0.6.76/src/libpst.c 2024-01-22 17:40:35.788761273 +0100
|
||||
@@ -3828,7 +3828,7 @@ static size_t pst_read_block_size(pst_fi
|
||||
return -1;
|
||||
}
|
||||
*buf = (char *) pst_malloc(inflated_size);
|
||||
- size_t result_size = inflated_size;
|
||||
+ unsigned long result_size = inflated_size;
|
||||
if (uncompress((Bytef *) *buf, &result_size, (Bytef *) zbuf, size) != Z_OK || result_size != inflated_size) {
|
||||
DEBUG_WARN(("Failed to uncompress %i bytes to %i bytes, got %i\n", size, inflated_size, result_size));
|
||||
if (zbuf) free(zbuf);
|
@ -0,0 +1,241 @@
|
||||
diff -up libpst-0.6.75/man/lspst.1 libpst-0.6.75/man/lspst
|
||||
diff -up libpst-0.6.75/man/pst2dii.1 libpst-0.6.75/man/pst2dii
|
||||
diff -up libpst-0.6.75/man/pst2ldif.1 libpst-0.6.75/man/pst2ldif
|
||||
diff -up libpst-0.6.75/man/readpst.1 libpst-0.6.75/man/readpst
|
||||
diff -up libpst-0.6.75/src/define.h.1 libpst-0.6.75/src/define.h
|
||||
--- libpst-0.6.75/src/define.h.1 2020-03-26 18:52:30.000000000 +0100
|
||||
+++ libpst-0.6.75/src/define.h 2021-02-22 18:25:55.705347052 +0100
|
||||
@@ -60,6 +60,10 @@
|
||||
#ifdef _WIN32
|
||||
#include <direct.h>
|
||||
|
||||
+ #ifdef __cplusplus
|
||||
+ extern "C" {
|
||||
+ #endif
|
||||
+
|
||||
#define D_MKDIR(x) mkdir(x)
|
||||
#define chdir _chdir
|
||||
#define strcasecmp _stricmp
|
||||
@@ -83,10 +87,20 @@
|
||||
int __cdecl _fseeki64(FILE *, __int64, int);
|
||||
__int64 __cdecl _ftelli64(FILE *);
|
||||
|
||||
+ #ifdef __cplusplus
|
||||
+ }
|
||||
+ #endif
|
||||
+
|
||||
#ifdef __MINGW32__
|
||||
#include <getopt.h>
|
||||
#else
|
||||
+ #ifdef __cplusplus
|
||||
+ extern "C" {
|
||||
+ #endif
|
||||
#include "XGetopt.h"
|
||||
+ #ifdef __cplusplus
|
||||
+ }
|
||||
+ #endif
|
||||
#endif
|
||||
#include <process.h>
|
||||
#undef gmtime_r
|
||||
@@ -102,7 +116,15 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#else
|
||||
+ #ifdef __cplusplus
|
||||
+ extern "C" {
|
||||
+ #endif
|
||||
+
|
||||
#include "XGetopt.h"
|
||||
+
|
||||
+ #ifdef __cplusplus
|
||||
+ }
|
||||
+ #endif
|
||||
#endif
|
||||
#define D_MKDIR(x) mkdir(x, PERM_DIRS)
|
||||
#endif
|
||||
@@ -131,6 +153,9 @@
|
||||
#include <semaphore.h>
|
||||
#endif
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
|
||||
void pst_debug_lock();
|
||||
void pst_debug_unlock();
|
||||
@@ -258,4 +283,8 @@ void *pst_realloc(void *ptr, size_t size
|
||||
|
||||
#define MAXDATEFMTLEN 40
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+} /* extern "C" */
|
||||
+#endif
|
||||
+
|
||||
#endif //DEFINEH_H
|
||||
diff -up libpst-0.6.75/src/deltasearch.cpp.1 libpst-0.6.75/src/deltasearch.cpp
|
||||
--- libpst-0.6.75/src/deltasearch.cpp.1 2020-03-26 18:52:30.000000000 +0100
|
||||
+++ libpst-0.6.75/src/deltasearch.cpp 2021-02-22 18:01:36.962177562 +0100
|
||||
@@ -1,6 +1,4 @@
|
||||
-extern "C" {
|
||||
- #include "define.h"
|
||||
-};
|
||||
+#include "define.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <iostream>
|
||||
diff -up libpst-0.6.75/src/libstrfunc.h.1 libpst-0.6.75/src/libstrfunc.h
|
||||
--- libpst-0.6.75/src/libstrfunc.h.1 2021-02-22 18:35:32.849905730 +0100
|
||||
+++ libpst-0.6.75/src/libstrfunc.h 2021-02-22 18:35:49.383893089 +0100
|
||||
@@ -4,9 +4,17 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
+
|
||||
char *pst_base64_encode(void *data, size_t size);
|
||||
char *pst_base64_encode_single(void *data, size_t size);
|
||||
char *pst_base64_encode_multiple(void *data, size_t size, int *line_count);
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
#endif
|
||||
|
||||
diff -up libpst-0.6.75/src/lzfu.h.1 libpst-0.6.75/src/lzfu.h
|
||||
--- libpst-0.6.75/src/lzfu.h.1 2020-03-26 18:52:30.000000000 +0100
|
||||
+++ libpst-0.6.75/src/lzfu.h 2021-02-22 18:01:36.962177562 +0100
|
||||
@@ -1,6 +1,10 @@
|
||||
#ifndef LZFU_H
|
||||
#define LZFU_H
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
+
|
||||
/** decompress lz compressed rtf data. The initial lz dictionary is preloaded
|
||||
with rtf specific data.
|
||||
* @param rtfcomp pointer to the rtf compressed data
|
||||
@@ -11,4 +15,8 @@
|
||||
*/
|
||||
char* pst_lzfu_decompress (char* rtfcomp, uint32_t compsize, size_t *size);
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
#endif
|
||||
diff -up libpst-0.6.75/src/msg.cpp.1 libpst-0.6.75/src/msg.cpp
|
||||
--- libpst-0.6.75/src/msg.cpp.1 2020-03-26 18:52:30.000000000 +0100
|
||||
+++ libpst-0.6.75/src/msg.cpp 2021-02-22 18:01:36.962177562 +0100
|
||||
@@ -1,16 +1,14 @@
|
||||
-extern "C" {
|
||||
- #include "define.h"
|
||||
- #include "msg.h"
|
||||
- #include <gsf/gsf-utils.h>
|
||||
+#include "define.h"
|
||||
+#include "msg.h"
|
||||
+#include <gsf/gsf-utils.h>
|
||||
|
||||
- #include <gsf/gsf-input-stdio.h>
|
||||
- #include <gsf/gsf-infile.h>
|
||||
- #include <gsf/gsf-infile-stdio.h>
|
||||
+#include <gsf/gsf-input-stdio.h>
|
||||
+#include <gsf/gsf-infile.h>
|
||||
+#include <gsf/gsf-infile-stdio.h>
|
||||
|
||||
- #include <gsf/gsf-output-stdio.h>
|
||||
- #include <gsf/gsf-outfile.h>
|
||||
- #include <gsf/gsf-outfile-msole.h>
|
||||
-}
|
||||
+#include <gsf/gsf-output-stdio.h>
|
||||
+#include <gsf/gsf-outfile.h>
|
||||
+#include <gsf/gsf-outfile-msole.h>
|
||||
|
||||
#include <list>
|
||||
#include <vector>
|
||||
diff -up libpst-0.6.75/src/msg.h.1 libpst-0.6.75/src/msg.h
|
||||
--- libpst-0.6.75/src/msg.h.1 2021-02-22 18:21:59.812527452 +0100
|
||||
+++ libpst-0.6.75/src/msg.h 2021-02-22 18:22:17.689513780 +0100
|
||||
@@ -1,2 +1,10 @@
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
+
|
||||
void write_msg_email(char *fname, pst_item* item, pst_file* pst);
|
||||
+
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
diff -up libpst-0.6.75/src/nick2ldif.cpp.1 libpst-0.6.75/src/nick2ldif.cpp
|
||||
--- libpst-0.6.75/src/nick2ldif.cpp.1 2020-03-26 18:52:30.000000000 +0100
|
||||
+++ libpst-0.6.75/src/nick2ldif.cpp 2021-02-22 18:01:36.963177561 +0100
|
||||
@@ -8,9 +8,7 @@ http://www.fsf.org/licenses/gpl.txt
|
||||
|
||||
#include <iostream>
|
||||
|
||||
-extern "C" {
|
||||
- #include "define.h"
|
||||
-}
|
||||
+#include "define.h"
|
||||
|
||||
char *ldap_base = NULL;
|
||||
char *ldap_org = NULL;
|
||||
diff -up libpst-0.6.75/src/pst2dii.cpp.1 libpst-0.6.75/src/pst2dii.cpp
|
||||
--- libpst-0.6.75/src/pst2dii.cpp.1 2020-03-26 18:54:32.000000000 +0100
|
||||
+++ libpst-0.6.75/src/pst2dii.cpp 2021-02-22 18:01:36.963177561 +0100
|
||||
@@ -13,10 +13,8 @@ Based on readpst.c by David Smith
|
||||
|
||||
using namespace std;
|
||||
|
||||
-extern "C" {
|
||||
- #include "define.h"
|
||||
- #include "lzfu.h"
|
||||
-}
|
||||
+#include "define.h"
|
||||
+#include "lzfu.h"
|
||||
|
||||
struct file_ll {
|
||||
string name;
|
||||
diff -up libpst-0.6.75/src/pst2ldif.cpp.1 libpst-0.6.75/src/pst2ldif.cpp
|
||||
--- libpst-0.6.75/src/pst2ldif.cpp.1 2020-03-26 18:52:30.000000000 +0100
|
||||
+++ libpst-0.6.75/src/pst2ldif.cpp 2021-02-22 18:01:36.963177561 +0100
|
||||
@@ -15,10 +15,8 @@ using namespace std;
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
-extern "C" {
|
||||
- #include "define.h"
|
||||
- #include "lzfu.h"
|
||||
-}
|
||||
+#include "define.h"
|
||||
+#include "lzfu.h"
|
||||
|
||||
void usage(void);
|
||||
void version(void);
|
||||
diff -up libpst-0.6.75/src/vbuf.h.1 libpst-0.6.75/src/vbuf.h
|
||||
--- libpst-0.6.75/src/vbuf.h.1 2021-02-22 18:23:24.020463050 +0100
|
||||
+++ libpst-0.6.75/src/vbuf.h 2021-02-22 18:23:26.377461247 +0100
|
||||
@@ -4,6 +4,9 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
|
||||
// Variable-length buffers
|
||||
struct pst_varbuf {
|
||||
@@ -25,5 +28,8 @@ size_t pst_vb_utf16to8(pst_vbuf *des
|
||||
size_t pst_vb_utf8to8bit(pst_vbuf *dest, const char *inbuf, int iblen, const char* charset);
|
||||
size_t pst_vb_8bit2utf8(pst_vbuf *dest, const char *inbuf, int iblen, const char* charset);
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
|
||||
#endif
|
||||
diff -up libpst-0.6.75/src/XGetopt.h.1 libpst-0.6.75/src/XGetopt.h
|
@ -1,28 +0,0 @@
|
||||
https://github.com/autoconf-archive/autoconf-archive/pull/235
|
||||
|
||||
diff --git a/m4/ax_python_devel.m4 b/m4/ax_python_devel.m4
|
||||
index 9d4eecf7..d30ee943 100644
|
||||
--- a/m4/ax_python_devel.m4
|
||||
+++ b/m4/ax_python_devel.m4
|
||||
@@ -190,7 +190,7 @@ EOD`
|
||||
ac_python_version=$PYTHON_VERSION
|
||||
else
|
||||
ac_python_version=`$PYTHON -c "import sys; \
|
||||
- print (sys.version[[:3]])"`
|
||||
+ print ("%d.%d" % sys.version_info[[:2]])"`
|
||||
fi
|
||||
fi
|
||||
|
||||
diff --git a/m4/ax_python.m4 b/m4/ax_python.m4
|
||||
index 7c9f511f..c2577905 100644
|
||||
--- a/m4/ax_python.m4
|
||||
+++ b/m4/ax_python.m4
|
||||
@@ -55,7 +55,7 @@
|
||||
AC_DEFUN([AX_PYTHON],
|
||||
[AC_MSG_CHECKING(for python build information)
|
||||
AC_MSG_RESULT([])
|
||||
-for python in python3.9 python3.8 python3.7 python3.6 python3.5 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
|
||||
+for python in python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
|
||||
AC_CHECK_PROGS(PYTHON_BIN, [$python])
|
||||
ax_python_bin=$PYTHON_BIN
|
||||
if test x$ax_python_bin != x; then
|
Loading…
Reference in new issue