On 15.05.2021 08:01, Marco Atzeri wrote:
On 15.05.2021 06:16, Brian Inglis wrote:
Trying to build latest libssh2 1.9.0 using cygport, works under x86_64,
but under i686/x86 fails with:
In file included from */usr/i686-pc-cygwin/include/sys/stat.h*:22,
from ...:
/usr/include/cygwin/stat.h:27:3: error: unknown type name ‘timestruc_t’
27 | timestruc_t st_atim;
| ^~~~~~~~~~~
The equivalent include path to */usr/i686-pc-cygwin/include/sys/stat.h*
does not exist under 64 bit as /usr/x86_64-pc-cygwin/include,
and cygcheck -f does not come up with a hit.
It is defined under:
/usr/include/machine/types.h
#ifndef __timestruc_t_defined
#define __timestruc_t_defined
typedef struct timespec timestruc_t;
#endif /*__timestruc_t_defined*/
check that the <threads.h> is included
of course <time.h> is a more natural choice
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple