This is my last cumulative patch to address this issue... The new file "libssh_config.h" is built by cmake, and installed. It is the /public/ configuration file, unlike config.h which is the /private/ configuration file.
I haven't found a simplier patch to continue using ssize_t under unix/linux platforms, and provide a good equivalent under WIN32 and WIN64 platforms Trying to define the ssize_t type under windows has serious drawbacks. Under WIN32, it is sometimes int and sometimes long (signed 32 bits). Under WIN64 it should be __int64 (signed 64 bits). If two libraries define ssize_t by their own, there are great (bad) chances that they disagree... Regards Christophe 2012/9/27 Werner Koch <[email protected]> > On Wed, 26 Sep 2012 20:58, [email protected] said: > > > file, but is it a good practice to have an installed header file whose > > content varies from an architecture to another? > > Yes, that is imho fine and much easier to maintain than fragile > #ifdefs. Some libraries install a generic file and one system specific - > which is a similar approach. > > > Shalom-Salam, > > Werner > > -- > Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. > > >
0003-provide-fallback-definition-of-ssize_t.patch
Description: Binary data
