mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
fix testsuite problems
This commit is contained in:
@@ -13,8 +13,12 @@ case $# in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
find "$source_dir" -name "*.c" -o -name "*.h" \! -path "$source_dir/3rdparty/*" | while read f; do
|
source_dir=`readlink -f "$source_dir"`
|
||||||
|
|
||||||
|
find "$source_dir" -name "*.c" -o -name "*.h" | while read f; do
|
||||||
case $f in
|
case $f in
|
||||||
|
${source_dir}/3rdparty/*)
|
||||||
|
;;
|
||||||
${source_dir}/*/CMakeFiles/*)
|
${source_dir}/*/CMakeFiles/*)
|
||||||
;;
|
;;
|
||||||
${source_dir}/CMakeFiles/*)
|
${source_dir}/CMakeFiles/*)
|
||||||
|
|||||||
@@ -20,10 +20,10 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <inttypes.h>
|
|
||||||
#undef _POSIX_SOURCE
|
#undef _POSIX_SOURCE
|
||||||
#include "../3rdparty/xdelta3-3.0.8/xdelta3.h"
|
#include "../3rdparty/xdelta3-3.0.8/xdelta3.h"
|
||||||
#include "../3rdparty/xdelta3-3.0.8/xdelta3.c"
|
#include "../3rdparty/xdelta3-3.0.8/xdelta3.c"
|
||||||
|
#include "../3rdparty/xdelta3-3.0.8/xdelta3-decode.h"
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
static int code(int encode, FILE * InFile, FILE * SrcFile, FILE * OutFile,
|
static int code(int encode, FILE * InFile, FILE * SrcFile, FILE * OutFile,
|
||||||
@@ -104,12 +104,12 @@ static int code(int encode, FILE * InFile, FILE * SrcFile, FILE * OutFile,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int xdelta3_diff(FILE *old, FILE *new, FILE *diff)
|
int xdelta3_diff(FILE * old, FILE * new, FILE * diff)
|
||||||
{
|
{
|
||||||
return code(1, new, old, diff, 0x1000);
|
return code(1, new, old, diff, 0x1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
int xdelta3_patch(FILE *old, FILE *diff, FILE *new)
|
int xdelta3_patch(FILE * old, FILE * diff, FILE * new)
|
||||||
{
|
{
|
||||||
return code(0, diff, old, new, 0x1000);
|
return code(0, diff, old, new, 0x1000);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int xdelta3_diff(FILE *old, FILE *new, FILE *diff);
|
int xdelta3_diff(FILE * old, FILE * new, FILE * diff);
|
||||||
int xdelta3_patch(FILE *old, FILE *diff, FILE *new);
|
int xdelta3_patch(FILE * old, FILE * diff, FILE * new);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user