diff options
Diffstat (limited to 'Build/source/texk/psutils/psutils-1.21-PATCHES/patch-11-WIN32')
-rw-r--r-- | Build/source/texk/psutils/psutils-1.21-PATCHES/patch-11-WIN32 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Build/source/texk/psutils/psutils-1.21-PATCHES/patch-11-WIN32 b/Build/source/texk/psutils/psutils-1.21-PATCHES/patch-11-WIN32 new file mode 100644 index 00000000000..2490a1b0642 --- /dev/null +++ b/Build/source/texk/psutils/psutils-1.21-PATCHES/patch-11-WIN32 @@ -0,0 +1,22 @@ +diff -ur psutils-1.21.orig/psutil.h psutils-1.21/psutil.h +--- psutils-1.21.orig/psutil.h 2013-10-25 13:06:05.000000000 +0200 ++++ psutils-1.21/psutil.h 2013-10-28 10:39:53.000000000 +0100 +@@ -26,6 +26,18 @@ + #include <io.h> + #include <fcntl.h> + #define SET_BINARY(fp) (void)_setmode(fileno(fp), _O_BINARY) ++#undef off_t ++#undef ftello ++#undef fseeko ++#if defined(__MINGW32__) ++#define off_t off64_t ++#define ftello ftello64 ++#define fseeko fseeko64 ++#else ++#define off_t __int64 ++#define ftello _ftelli64 ++#define fseeko _fseeki64 ++#endif + #else /* !WIN32 */ + #define SET_BINARY(fp) (void)0 + #endif |