mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-01 13:47:59 +02:00
Binary mode in any2ppm
From: https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-cairo/0010-binary-mode-in-any2ppm.mingw.patch
This commit is contained in:
parent
f4dbba26d4
commit
23dce494d1
1 changed files with 8 additions and 1 deletions
|
|
@ -81,8 +81,11 @@
|
|||
|
||||
#include <errno.h>
|
||||
|
||||
#if HAVE_UNISTD_H && HAVE_FCNTL_H && HAVE_SIGNAL_H && HAVE_SYS_STAT_H && HAVE_SYS_SOCKET_H && HAVE_SYS_POLL_H && HAVE_SYS_UN_H
|
||||
#if HAVE_FCNTL_H
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_UNISTD_H && HAVE_SIGNAL_H && HAVE_SYS_STAT_H && HAVE_SYS_SOCKET_H && HAVE_SYS_POLL_H && HAVE_SYS_UN_H
|
||||
#include <signal.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/socket.h>
|
||||
|
|
@ -874,6 +877,10 @@ main (int argc, char **argv)
|
|||
rsvg_set_default_dpi (72.0);
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) && !defined (__CYGWIN__)
|
||||
_setmode (1, _O_BINARY);
|
||||
#endif
|
||||
|
||||
if (argc == 1)
|
||||
err = any2ppm_daemon ();
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue