Alain Guibert and others reported problems on systems without socklent_t defined.
We should either add an gcrypt-config.h file which gets build specific for a
target system or generate gcrypt.h at all from a gcrypt.h.in.
Description
Description
Event Timeline
Comment Actions
Yeah, I agree that we need to generate it with configure.
I suggest we copy the exact code from Pth, which uses FALLBACK_* types. This
will help compatibility in the prototypes, and should be proven to work.
If you want me to do it, just assign it to me, please.
Comment Actions
Hi,
I think I addressed this with revision 1180. It is easy to add more fallback
types, although I stuck to socklen_t only for now. I will check if I can reach
some of the original submitters for testing.
2006-10-10 Marcus Brinkmann <marcus@g10code.de>
- configure.ac: Invoke AC_CHECK_SOCKLEN_TYPE. (AC_CONFIG_FILES): Add src/gcrypt.h. (AC_CONFIG_SRCDIR): Change to src/libgcrypt.vers.
m4/
2006-10-10 Marcus Brinkmann <marcus@g10code.de>
- fallback.m4: New file from Pth.
src/
2006-10-10 Marcus Brinkmann <marcus@g10code.de>
- gcrypt.h: Add fallback type for socklen_t. Move to ...
- gcrypt.h.in: ... this file.
- Makefile.am (EXTRA_DIST): Add gcrypt.h.in.