Page MenuHome GnuPG

libgpg-error gpgrt_ftruncate decl breaks libgcrypt build
Closed, ResolvedPublic

Description

Hi,

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 <marcus.brinkmann@rub.de>
Date: Tue, 4 Dec 2018 15:42:47 +0000
Subject: [PATCH Libgpg-error] Fix gpgrt_ftruncate declaration.

---
 src/gpg-error.h.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in
index cb32c48..b7aa5f6 100644
--- a/src/gpg-error.h.in
+++ b/src/gpg-error.h.in
@@ -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);
-- 
2.17.1