diff options
| author | Eli Zaretskii | 2019-04-15 17:17:01 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-04-15 17:17:01 +0300 |
| commit | 3ec22997a208b8260c2a0e7a61888d7c0db4e4fd (patch) | |
| tree | 24844ac09b4a6e26993de84101d82284f7648a23 /lib-src/make-fingerprint.c | |
| parent | e29260b5f946156652c92fe77f97450c756d0367 (diff) | |
| download | emacs-3ec22997a208b8260c2a0e7a61888d7c0db4e4fd.tar.gz emacs-3ec22997a208b8260c2a0e7a61888d7c0db4e4fd.zip | |
Fix MS-Windows build broken by make-fingerprint changes
* lib-src/make-fingerprint.c (fseeko) [WNDOWSNT]: Define to
fseeko64 for non-MinGW64 MinGW.
* lib-src/ntlib.c (stat): Fix calculation of file size.
(fstat): New function, a subset of src/w32.c:fstat. This is
needed because make-fingerprint.c now calls 'fstat', and the
MS version will fail to produce reliable results because
nt/inc/sys/stat.h redefines 'struct stat'.
Diffstat (limited to 'lib-src/make-fingerprint.c')
| -rw-r--r-- | lib-src/make-fingerprint.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib-src/make-fingerprint.c b/lib-src/make-fingerprint.c index dc21fc2aa9a..535e5751320 100644 --- a/lib-src/make-fingerprint.c +++ b/lib-src/make-fingerprint.c | |||
| @@ -50,6 +50,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 50 | is really just insurance. */ | 50 | is really just insurance. */ |
| 51 | #undef fopen | 51 | #undef fopen |
| 52 | #include <direct.h> | 52 | #include <direct.h> |
| 53 | |||
| 54 | #ifndef MINGW_W64 | ||
| 55 | # undef fseeko | ||
| 56 | # define fseeko fseeko64 | ||
| 57 | #endif | ||
| 53 | #endif /* WINDOWSNT */ | 58 | #endif /* WINDOWSNT */ |
| 54 | 59 | ||
| 55 | int | 60 | int |