Home GnuPG

build: Minor API fixes to fix build problems on AIX.

Description

build: Minor API fixes to fix build problems on AIX.

* src/gcrypt.h.in (gcry_error_from_errno): Fix return type.
* src/visibility.c (gcry_md_extract): Change return type to match the
prototype.

IBM compiler optimize enums and thus enums may be shorter than an
unsigned int. Thus an

assert (sizeof (gpg_error_t) == sizeof (gpg_err_code_t)

would fail. The deatils seem to depend on the passed compiler options
which explains that it has been only reported now.

  • GnuPG-bug-id: T3256
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jul 5 2017, 8:10 PM
Parents
rC0d30a4a9791d: tools: Add left shift to mpicalc.
Branches
Unknown
Tags
Unknown
Tasks
T3256: AIX: libgcrypt-1.7.8 compile errors