libgpg-error 1.15 fails to build on MacOSX

Werner Koch wk at
Fri Sep 12 10:34:52 CEST 2014

On Fri, 12 Sep 2014 04:38, chdiza at said:

> int _gpgrt_fseeko (gpgrt_stream_t stream, off_t offset, int whence);
>     ^

The fix is obvious; see below.  Nevertheless, can you please send me the
already generated src/gpg-error.h file (with or without the patch - it
won't matter)?



commit e1882ee8c541020ec590bf096508ca5b6d2ab944 (HEAD, refs/heads/wk-master)
Author: Werner Koch <wk at>
Date:   Fri Sep 12 10:33:16 2014 +0200

    Fix a prototype
    * src/gpgrt-int.h: s/off_t/gpgrt_off_t/.

	Modified   src/gpgrt-int.h
diff --git a/src/gpgrt-int.h b/src/gpgrt-int.h
index 0e6f69c..f97166f 100644
--- a/src/gpgrt-int.h
+++ b/src/gpgrt-int.h
@@ -105,9 +105,9 @@ void _gpgrt_clearerr_unlocked (gpgrt_stream_t stream);
 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, off_t offset, int whence);
+int _gpgrt_fseeko (gpgrt_stream_t stream, gpgrt_off_t offset, int whence);
 long int _gpgrt_ftell (gpgrt_stream_t stream);
-off_t _gpgrt_ftello (gpgrt_stream_t stream);
+gpgrt_off_t _gpgrt_ftello (gpgrt_stream_t stream);
 void _gpgrt_rewind (gpgrt_stream_t stream);
 int _gpgrt_fgetc (gpgrt_stream_t stream);

Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-devel mailing list