]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.cpp
Expose python 3 support to some testing
[lyx.git] / src / support / filetools.cpp
index 310e621e17a406d94e5b0606767ce4b5364e1ba7..fbc8711b15b5ef91cd8fff46573169370f5e28e2 100644 (file)
@@ -51,6 +51,7 @@
 #endif
 
 #include <cerrno>
+#include <climits>
 #include <cstdlib>
 #include <cstdio>
 
@@ -1065,7 +1066,7 @@ cmd_ret const runCommand(string const & cmd)
                                0, 0, &startup, &process)) {
 
                        CloseHandle(process.hThread);
-                       int fno = _open_osfhandle((long)in, _O_RDONLY);
+                       int fno = _open_osfhandle((intptr_t)in, _O_RDONLY);
                        CloseHandle(out);
                        inf = _fdopen(fno, "r");
                }