From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: Re: cygport i686/x86 library build undefined type in sys/stat.h
Date: Sat, 15 May 2021 08:01:59 +0200 [thread overview]
Message-ID: <3b055003-0f63-42d4-b196-fd59a0b682ae@gmail.com> (raw)
In-Reply-To: <08857c84-dbfe-8bf4-f7f8-40f64a3edda0@SystematicSw.ab.ca>
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
$ cat prova.c
#include <threads.h>
int main(){
timestruc_t abstime;
}
$ gcc -c prova.c
$ ls -l prova.o
-rw-r--r-- 1 Marco Kein 656 May 15 07:59 prova.o
next prev parent reply other threads:[~2021-05-15 6:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-15 4:16 Brian Inglis
2021-05-15 6:01 ` Marco Atzeri [this message]
2021-05-15 7:55 ` Marco Atzeri
2021-05-15 13:36 ` Ken Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3b055003-0f63-42d4-b196-fd59a0b682ae@gmail.com \
--to=marco.atzeri@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).