summaryrefslogtreecommitdiffstats
path: root/common/estream.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2006-11-20 17:49:41 +0100
committerWerner Koch <wk@gnupg.org>2006-11-20 17:49:41 +0100
commit5885142c83823b153689acd272103403127a3cd3 (patch)
tree514e8325f9201775785b3249b176e9ac051776ff /common/estream.c
parentNo need for thsi script. Use ./autogen.sh --build-w32 instead. (diff)
downloadgnupg2-5885142c83823b153689acd272103403127a3cd3.tar.xz
gnupg2-5885142c83823b153689acd272103403127a3cd3.zip
Made some PIN pads work.
Some cleanups for 64 bit CPUs.
Diffstat (limited to 'common/estream.c')
-rw-r--r--common/estream.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/common/estream.c b/common/estream.c
index e056cb7b4..e00191e53 100644
--- a/common/estream.c
+++ b/common/estream.c
@@ -46,6 +46,9 @@
#endif
#ifdef HAVE_PTH
+ /* We explicitly need to disable soft mapping as Debian currently
+ enables it for no reason. */
+# define PTH_SYSCALL_SOFT 0
# include <pth.h>
#endif
@@ -59,6 +62,7 @@ void *memrchr (const void *block, int c, size_t size);
#include <estream.h>
+
/* Generally used types. */
@@ -66,6 +70,13 @@ void *memrchr (const void *block, int c, size_t size);
typedef void *(*func_realloc_t) (void *mem, size_t size);
typedef void (*func_free_t) (void *mem);
+#ifdef HAVE_FOPENCOOKIE
+typedef ssize_t my_funopen_hook_ret_t;
+#else
+typedef int my_funopen_hook_ret_t;
+#endif
+
+
/* Buffer management layer. */
@@ -1651,7 +1662,7 @@ doreadline (estream_t ES__RESTRICT stream, size_t max_length,
/* Helper for esprint. */
#if defined(HAVE_FOPENCOOKIE) || defined(HAVE_FUNOPEN)
-static int
+static my_funopen_hook_ret_t
print_fun_writer (void *cookie_arg, const char *buffer, size_t size)
{
estream_t stream = cookie_arg;