Page MenuHome GnuPG

libgpg-error gpgrt_ftruncate decl breaks libgcrypt build
Closed, ResolvedPublic



see below patch. Speedo git-native build breaks with "error: 'estream_t' was not declared in this scope" for libgcrypt and others.

From 19f320e6c00b2ef0a1ffee4a79bc4f433510c35a Mon Sep 17 00:00:00 2001
From: Marcus Brinkmann <>
Date: Tue, 4 Dec 2018 15:42:47 +0000
Subject: [PATCH Libgpg-error] Fix gpgrt_ftruncate declaration.

 src/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ b/src/
index cb32c48..b7aa5f6 100644
--- a/src/
+++ b/src/
@@ -717,7 +717,7 @@ int _gpgrt_pending_unlocked (gpgrt_stream_t stream); /* (private) */
 int gpgrt_fflush (gpgrt_stream_t stream);
 int gpgrt_fseek (gpgrt_stream_t stream, long int offset, int whence);
 int gpgrt_fseeko (gpgrt_stream_t stream, gpgrt_off_t offset, int whence);
-int gpgrt_ftruncate (estream_t stream, gpgrt_off_t length);
+int gpgrt_ftruncate (gpgrt_stream_t stream, gpgrt_off_t length);
 long int gpgrt_ftell (gpgrt_stream_t stream);
 gpgrt_off_t gpgrt_ftello (gpgrt_stream_t stream);
 void gpgrt_rewind (gpgrt_stream_t stream);