diff --git a/deps/SZ/sz/src/sz.c b/deps/SZ/sz/src/sz.c index dcec9670eaf065fe4397665f2e5edeeef6662541..87060b8012b4e768a350a48e57e97ace45927771 100644 --- a/deps/SZ/sz/src/sz.c +++ b/deps/SZ/sz/src/sz.c @@ -160,15 +160,6 @@ void SZ_Finalize() } } -void modulePath(char *buf, int size) -{ - char path[1024]; - sprintf(path, "/proc/%d/exe", getpid()); - readlink(path, buf, size); - char* pos = strrchr(buf, '/'); - if(pos) - pos[1]=0; -} #ifdef WINDOWS int gettimeofday(struct timeval *tv, struct timezone *tz) { diff --git a/deps/SZ/zlib/gzguts.h b/deps/SZ/zlib/gzguts.h index 990a4d2514933709883a7d949ed52146675fe2c1..f9e647faf746636b6f20ac1f817e4a8c8d8cf51c 100644 --- a/deps/SZ/zlib/gzguts.h +++ b/deps/SZ/zlib/gzguts.h @@ -33,6 +33,8 @@ #ifdef _WIN32 # include +#else +# include #endif #if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32) diff --git a/deps/SZ/zlib/gzlib.c b/deps/SZ/zlib/gzlib.c index 4105e6aff92594fb9cfa557aa8349cea5a5d4a2b..e2df89474e165c33d49bf6043e926a06b6f7c580 100644 --- a/deps/SZ/zlib/gzlib.c +++ b/deps/SZ/zlib/gzlib.c @@ -5,6 +5,12 @@ #include "gzguts.h" +#ifdef WINDOWS +#include +#else +#include +#endif + #if defined(_WIN32) && !defined(__BORLANDC__) && !defined(__MINGW32__) # define LSEEK _lseeki64 #else diff --git a/deps/SZ/zlib/zconf.h b/deps/SZ/zlib/zconf.h index 77398c11a1e2c5cd2262559cc4c9d033d56b22eb..54b4ac97e6d1c70929f2a9dc8919984fe71c9ddc 100644 --- a/deps/SZ/zlib/zconf.h +++ b/deps/SZ/zlib/zconf.h @@ -472,7 +472,7 @@ typedef uLong FAR uLongf; #endif #ifndef Z_SOLO # if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) -# include /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ +//# include /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ # ifdef VMS # include /* for off_t */ # endif diff --git a/deps/SZ/zstd/compress/zstdmt_compress.c b/deps/SZ/zstd/compress/zstdmt_compress.c index 6daedca8b3d0a57af2ad48e5fa7934a521a92e6d..0c5987b11eb3fbcc22fc1c2516dd3c6da65ef11f 100644 --- a/deps/SZ/zstd/compress/zstdmt_compress.c +++ b/deps/SZ/zstd/compress/zstdmt_compress.c @@ -40,8 +40,10 @@ #if defined(DEBUGLEVEL) && (DEBUGLEVEL>=2) && !defined(_MSC_VER) # include -# include -# include + +//# include +//# include + # define DEBUG_PRINTHEX(l,p,n) { \ unsigned debug_u; \