2006-02-28 Marcus Brinkmann <marcus@g10code.de>
* w32-glib-io.c (O_BINARY) [!O_BINARY]: New macro. (_gpgme_io_pipe): Open pipes in binary mode.
This commit is contained in:
parent
79659ab544
commit
a30bcb457c
@ -1,3 +1,8 @@
|
|||||||
|
2006-02-28 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* w32-glib-io.c (O_BINARY) [!O_BINARY]: New macro.
|
||||||
|
(_gpgme_io_pipe): Open pipes in binary mode.
|
||||||
|
|
||||||
2006-02-22 Marcus Brinkmann <marcus@g10code.de>
|
2006-02-22 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
* engine.c (gpgme_engine_check_version): Reimplemented to allow
|
* engine.c (gpgme_engine_check_version): Reimplemented to allow
|
||||||
|
@ -41,6 +41,13 @@
|
|||||||
#include "sema.h"
|
#include "sema.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
|
#ifndef O_BINARY
|
||||||
|
#ifdef _O_BINARY
|
||||||
|
#define O_BINARY _O_BINARY
|
||||||
|
#else
|
||||||
|
#define O_BINARY 0
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* This file is an ugly hack to get GPGME working with glib on Windows
|
/* This file is an ugly hack to get GPGME working with glib on Windows
|
||||||
@ -206,7 +213,7 @@ _gpgme_io_pipe (int filedes[2], int inherit_idx)
|
|||||||
GIOChannel *chan;
|
GIOChannel *chan;
|
||||||
|
|
||||||
#define PIPEBUF_SIZE 4096
|
#define PIPEBUF_SIZE 4096
|
||||||
if (_pipe (filedes, PIPEBUF_SIZE, O_NOINHERIT) == -1)
|
if (_pipe (filedes, PIPEBUF_SIZE, O_NOINHERIT | O_BINARY) == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* Make one end inheritable. */
|
/* Make one end inheritable. */
|
||||||
|
Loading…
Reference in New Issue
Block a user