[gs-commits] mupdf 1.16.1.51 gl: Include correct header for getcwd() i

[email protected] (Sebastian Rasmussen) Mon, 30 Sep 2019 18:19:42 +0000 (UTC)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
commit 65a84f872e723dfbd4e28c0f860721c5453629af
Author: Sebastian Rasmussen <[email protected]>
Date:   Mon Sep 30 15:22:52 2019 +0200

    gl: Include correct header for getcwd() in Windows builds.

diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c
index 8396bfe..f543185 100644
--- a/platform/gl/gl-main.c
+++ b/platform/gl/gl-main.c
@@ -17,6 +17,7 @@
 #ifndef _WIN32
 #include <unistd.h> /* for fork, exec, and getcwd */
 #else
+#include <direct.h> /* for getcwd */
 char *realpath(const char *path, char *resolved_path); /* in gl-file.c */
 #endif
 

http://git.ghostscript.com/?p=mupdf.git;a=commit;h=65a84f872e723dfbd4e28c0f860721c5453629af

--
MuPDF library
Artifex Software, Inc.